How to prevent a panic attack?

🌟CrysAnn🌟 • Princess born 10/4💖 pro-life, every life should be celebrated.
I am prone to panic attacks. I am on the verge of one already and I am not sure How to deal. My meds aren't safe for pregnancy and I don't know what to do. (Panic attack is being induced by school ). As of right now I just laid down and took a benadryl and I am cuddling with my dogs. I am just wondering if anyone has any other ideas How to cope. I am 22 weeks pregnant and I don't want to hurt the baby by getting too stressed out.