GERD PAIN

Sw
Hi mommies 
I'm blessed with baby boy had c section on nov 19th 
After a month on dec 12th had severe stomach gas pain  Gerd Went for emergency doc gave Pepcid to continue everyday. But I dint take everyday again next month on Jan 18th I got pain again everytime I get gastric pain at midnight wen I wake up to feed my lo. Pain never lasts it not allow to sit stand sleep pain will be horrible. Anyone experienced same? Will it go? I changed my diet. Again if pains comes doc told to do endoscopy I'm tensed 😰😰