What does your diet look like? And I would also be concerned about long-term use of a PPI.
Maybe try a course of zinc L-carnosine to try to heal the stomach lining and esophagus. If it works, ask your doc about coming off the pantoprazole.
If the gastrointestinal tract is inflamed or generally messed up (leaky gut), then nothing works properly in the rest of the body.