How to avoid unworthy communion?

Hi guys, I got baptized about 4 weeks ago. I was planning to take communion and today my pastor brought up how unworthy communion works so I felt as if I needed to re examine myself. I’m still very guilty of sin, I feel like I lack in faith due to having PTSD that freaks me out every time I have these mental attacks. I get so scared and if it’s as if my faith isn’t there when these things happen. I get angry and ticked off by little things. I just don’t feel like I’m worthy enough to take communion. I wouldn’t want to be cursed because I didn’t take the communion properly. I’ve looked into it and apparently this is a real thing. Can someone explain to me the proper steps I can take towards this? If you guys and gals have ever went through this I’d like to hear your story.