Agree that it was very poor communication and your suffering was unnecessary.
Did you try the doctors suggestion of Rennies and Gaviscon? Both my husband and I suffer from acid reflux. I had a gastroscopy and was found to have a hiatus hernia and prescribed lanzoprazole - one of the ppis. It worked well for me until I got unpleasant side-effects. Since then I manage with Rennies, Gaviscon tablets (hate the liquid), ranitidine and occasional ppi.
Husband doesn't like ppis, but shallows gallons of Gaviscon liquid, which seems to work for him.
When you have to come off ppis again, before gastoscopy, try taking a couple of tablespoons of Gaviscon before bed, or suck a Gaviscon tablet before you lie down. During the day, take a Rennie as soon as you feel discomfort. I can suffer even in the morning, after only a cup of coffee, but a Rennies sorts me out! I have them in every coat pocket and in car.