My heartburn seems to happen pretty much randomly (foods don't seem to trigger it). If you think ibuprofen has started your symptoms, I would definitely recommend trying probiotics and other things that coat the stomach linings: orange peel extract (d-limonene) etc.
I've tried several of these over the last year since I get side effects on PPIs/H2s.
DGL, Aloevera, Probiotics, Mastic Gum, Acidgone, Ginger, Fennel seeds, Manuka-honey+turmeric, glutamine, l-theanine, orange peel extract, apple cider vinegar pepsin-gi etc.
Yoga, breathing exercises (art-of-living sudarshan kriya yoga) - this helped me the most.
Homeopathy - didn't help.
Acupuncture - helped a bit but only for some time.
Anti-depressants/anti-anxiety meds: (I get side effects on these as well - wellbutrin and klonopin helped the most).
Gaviscon, Tums, Maalox (can't take these too many times either .. as they begin to cause constipation and other digestive issues).
Hope all this helps.