Vomiting/GERD

Is anyone else having an issue with their digestion? I went to the ER due to a nurses hotline advice and I was fine except I had an "esophageal spasm." The doctor said to eat small meals every three hours and none three hours prior to sleep. Two days ago I woke myself up at 5am and threw up. It was basically acid. Today I woke myself up after only sleeping for two hours because I felt the food rising. Mind you, I had not eaten at least five hours prior to sleep specifically to avoid this. It doesn't feel acidic this morning, just like I've gotta throw up undigested food. Is this normal? Ps I'm in my third trimester and am 28+6