Let me guess, they gave you more and more pills sometimes twice-three times a day?
I ended up on some big Lansoprazole tablets (30mg iirc!). One a day was more than enough. The problem is that these tablets did not have an immediate effect as they slow acid production, so I would forget to take the tablets as I felt fine, but a day or two later I would get some extremely painful burning. It really was awful.
A co-worker who also takes these tablets has major issues with the runs but I never had any issues at all.
The surgeon said that the tablets are kind of like powerful Zantac tablets, as they inhibit the acid production rather than the Gaviscon effect of just taming the acid down a little that was already there.
He then said that the Lansoprazole had shown signs of stomach cancer in testing on rats, but I would end up with throat cancer from the stomach acid giving it a daily battering. I had been on Lansoprazole for 3-4 years at the time with zero side effects - In fact when on them I would never get heartburn.
Off the medication though.....very very painful.
The doctors tried to fob it off on being overweight, but I had had issues with the acid since I was in primary school and I was super skinny back then, then it went away and came back badly when I was 18. I missed out on enjoying my Fresher's week as I kept feeling sick, which resulted in quite a difficult time in my first University year as people thought I just did not want to spend time with them.
I have had a wire down my throat that came out my nose with an ethernet socket on the end, attached to what looks like a USB modem for 24 hours! This measured the acid. I also had a camera down my throat.
I got a 2-4-1 operation. The operation was to fix the broken valve that leaked acid as it was weak. I also had one
huge hiatus hernia!
I now only get heartburn if I eat/drink rubbish, and even then it is a mere tickle compared to what it was before! I do not take medication for heartburn at all anymore

. One issue though is trapped wind, as it is now much harder to burp, so fizzy drinks are uncomfortable as they make their way to the other end! Don't gobble your food or have fizzy drinks and you will live just like you never ever had an issue

.
So all in all, a nasty condition, but if your valve is broken (I have never had any ulcers) then it is 99% fixable!
But trust me, there is worse. I had a HUUUUUUUUUUUUGE Pilonidal Sinus at age 15. Lovely!