anxiety medication while pregnant

Okay NOO BASHING, I only want input from people that have been through what I'm going through. Back story is that I was on Xanax 2 mlg 3 x a day for sever panic disorder and social anxiety for about 4 years. I stopped before I got pregnant ( with medical attention ) & I am now 25 weeks pregnant. The last few weeks have been hell for me with panic attacks so I called and scheduled an appointment with my psych. He did not want to put my on Xanax but after listening to me and checking my vitals (heart rate was 105 and BP was also high) and the amount of sweat and shakiness I had, he said that he was prescribing me .5 three x a day because my stress was much worse for the baby. Has anyone else been prescribed a benzo for panic throughout their pregnancy? Is your baby okay? Please help me. 
No bashing I can't handle it right now, I'm upset enough. Thank you
Update real quick: thank you ladies so much for not giving me hell for this! I've done sooo much research and my doctor only prescribed it because I'm almost in my third trimester. The first trimester has studies showing birth defects. I'm trying to trust my doc I've been with him for yearssss. I'm just so afraid for my little baba

Glow Resources

Let’s Glow

Glow is here for you on your path to pregnancy

Glow helps you navigate your fertility journey with smart tools, personalized insights, and guidance from medical experts who understand what matters most.

25+ million

Users

4.8 stars

200k+ app ratings

20+

Medical advisors