Reglan?!

Yesterday I went to the ER for cramping and really bad heart burn since my doctor won’t see me until next week, they did ultrasound and stuff and the baby was fine, the gave me some reglan (metoclopramide) & famotidine thru an IV & I instantly started having anxiety and started crying and freaking out to go home, I ended up pulling the IV out & walking out, which is WAYYYYYYY out my character and it’s something I would of never done. Has anyone ever had bad experience with these medications? I honestly feel like a crazy women but I was completely unknown of the side effects.