Panic attack while pregnant

I have been going through a lot with my husband. I’m 38 weeks pregnant. Any advice on how to stop panic attacks? I don’t want to harm my baby with all these panic attacks but I get to the point where I start hyperventilating and can’t stop.