very very confused

Hello! I'm 23 years old, female. I started developing GERD a month and a half ago while going through an intense chronic anxiety/panic attacks period. It was the worst anxiety of my life, it was day in and day out and I was paranoid about everything because of it. During that time I had diarrhea everyday with bloating and gas. I noticed a slight bit of difficulty swallowing but I thought that was just tense muscles around my throat because of the anxiety. I threw up on occasion in the morning too after being significantly anxious. I over-ate during this time because I thought I would lose weight but in fact I gained 9 pounds in two weeks.

One day towards the end of July after throwing up all morning, I decided to go to the doctor. They diagnosed me with GERD and prescribed me Prilosec and Ranitidine for 4 weeks. Once I started taking the medication, my dysphagia got worse but my stomach seems to have gotten better. I am three weeks into the treatment. I don't throw up anymore and the diarrhea/gas is gone but I still get bloating. I get full after only a few bites of food and have to drink water to get most of the food down. I only eat soft food. My esophagus and chest burn a lot of the time. Breathing feels more difficult too. I've read so much about not drinking coffee or alcohol and avoiding spicy/acidic food to cure the problem but I never consumed coffee or soda or spicy food in the first place. I haven't had any alcohol since May. I'm not overweight, the 9 pounds I gained in July is quickly disappearing since I hardly eat anything now. I also sleep on a wedge pillow but wake up often at night.

My doctor said to stay on the medication. I have a consultation appointment in about a week with a GI doctor. I've managed the insane anxiety that I had in July, now I'm just left with a bit of brain fog and occasional worry. Does the medication just take a while to work? If my stomach feels better, why hasn't it taken care of the silent reflux? Could it be a hernia? Do you think this was all caused by the anxiety?