I agree with everyone who suggested to get it diagnosed first. It does sound like it may be Gerd. I also tried two different acid reflux pills. One made my stomach upset and I had no clue that they all weaken your bones until I started to present with joint pain and I’m generally active and careful. I think it was the pill that leached my calcium.
I now simply watch what I eat. Things like onions, spices and peppers or heavy meals rich in fat, can easily make my stomach ill. Once you have an episode of Gerd, it can take several months for the damage to be reversed. I eat small meals, avoid caffeine and fatty foods late at night. I also make sure to give my stomach plenty of digestion time before doing anything that will require a lot of bending down or exercises like stomach crunches. Whatever I recently ate will definitely come up with vengeance.
Before I eat anything iffy, I will chew on a tums to help minimize the effect.
Smaller more frequent meals is better than letting your stomach be empty before digesting a huge meal.
But do get tested first. If its not Gerd, then get tested for food allergies.