I need advice!

Kaylee
So I have severe heartburn, to the point that I've been throwing up blood. My doctor prescribed me metoclopramide to see if that would help calm things down. However after doing some research and reading the pamphlets that came with the medication I am terrified to take it. It says right on the paper that it should be avoided in the third trimester (I'm 31 weeks). I'm pretty miserable with this heartburn but I don't want to do anything to hurt my baby.. anyone have experience with this medication?