I’m ok with one cup of coffee a day, if I work late I drink tea instead which gives me the caffeine boost I need without so much acidity.
I would take the meds, discuss any concerns with your doctor. Diets seem to help some, but not all people so be careful when relying on diet alone.