Years ago, when I trusted doctors
, I was prescibed Losec which is the same proton pump inhibitor under a different name.
I had had a gastroscopy?(camera down the throat) and a hiatus hernia was found to be the cause of acid reflux.
I didn't take Losec for long because I got bad headaches. If you look at the side effects, they can be as bad as what you are trying to cure.
I did spend a few years taking high strength Ranitidine (Zantak). I regret that too because it affected my ability to absorb nutrients from food, so just caused a gradual slow decline into poor health.
If you have identified foods that have bad effects on you, it is safer to just avoid eating them, rather than take a drug.
I suppose I must still have a hiatus hernia but I rarely get heartburn now unless I east pastry and onions, so I have bicarbonate of soda ready when I do.