Hi.
Thanks for your query and an elucidate history of easing of pain on eating some food.
The most probable diagnosis in your case looks to be
Gastritis or gastric ulcer caused by the painkillers.
I would suggest you the following:
Zantac 12 hourly.
Pepcid every 3 to 4 hours when on empty stomach.
Add
Domperidone or such motility regulators.
Soft bland diet.
No aerated colas / soda/ drinks.
Early dinner. No late nights.
Treatment for
anxiety (as prescribed / needs a prescription by your Doctor)
Lying in a reclining position
Walk around after dinner.
Think of the factors which increased the present problem, GERD, anxiety and try to avoid.
If no relief, get Upper GI
endoscopy done and get prescription for added Medicines.