Anxiety meds 😭

I went to the doctor to get something to ease my mind anxiety. After I started taking the medicine I got extreme anxiety and nausea. I couldn’t eat, I kept throwing up, and I had made bad decisions about important things in my life. I hadn’t ate in 4 days. I finally had to quit taking them and now I’m trying to eat again and feel normal eating. Has anyone else had an experience like this before? If so what did you do to make it better?