Had my first panic attack in the 90's after smoking some pot. Traumatic experience. It came back a month after that, had no idea what this was. There was no Internet at that time, so I went to the library and thought I was schizophrenic.
Met a psychologist, she asked me about family and my life but I was too deeply into it, I just wanted relief.
Met a psychiatrist, told me it was a panic disorder, pretty common, prescribed Xanax. The day I met him and that he told me what it was, I was almost cured. I wasn't gonna die, and I wasn't crazy.
Took very few Xanax, just knowing I had them and that they were effective made me feel secure.
Personally, I know that fatigue and alcohol (well, hangovers) can trigger anxiety and potential panic attacks. The best cure I have found is exercising, a lot. Jogging, crossfit, whatever. In my case, I just know that as long as I stay in shape physically, the worst anxiety I might feel will be easily tolerable. Oh and having pills available if you feel you might need them. I may take 3 or 4 a year, for prevention only.
Oh and funny fact: besides fatigue and alcohol, fluorescent light in small bathrooms automatically triggers big time anxiety for me. But since I know it, I'll just smile even though my whole body is telling me I'm gonna die within 30 seconds.