Since you have recurrent problem of gastritis it could more plausibly due to H.pylori infection or due to food habits
Next Steps
kindly get endoscopy done and check for h.pylori, if positive have to take a course of antibiotic.
Health Tips
avoid tea, coffee, stress, eat time to time