Feeling crazy during pregnancy?

Hi, I don’t have any mental health issues except anxiety/panic attacks sometimes, but when I got pregnant I felt mentally ill. Like i felt like i was going crazy literally. It was hard to explain to my therapist and she told me it’s the hormones and then I told my doctor and he always said it was the hormones but I couldn’t take it. Like i felt like I was going insane and I was wondering if this is normal or an issue? I’m scared to get pregnant again because of this. Now that I’m not pregnant anymore I feel fine. I don’t want to feel like that ever again but I want to get pregnant again.