Yes, you have been on the PPI's long term. Not to be confused with continuous long-term, which is because you broke the cycle several times in the five years. Criteria;
Taking them for 5 years
Taking them for a month or almost a month
Taking them for a reason that may not go away(not sure, but if the condition is chronic then you will need the meds chronic/longterm) signifying that you will continue to need them
Medscape:
a definition in the literature for "long-term" is lacking; neither the
AGA guidelines nor the ACG guidelines define what is considered
long-term. For the rest of this article, the authors use long-term to
designate therapy greater than 14 days
So we can deduce that if you continue therapy for longer than 14 days every year you will be long term.
About.GERD.com
Be aware that the OTC proton pump inhibitors should only be used as
directed for 14 days for the treatment of frequent heartburn. If your
heartburn continues, talk to your healthcare professional. No more
than three 14-day treatment courses should be used in one year.
So from here we can see that PPI's here are only indicated for around 14 days 3 times a year.
Are Heartburn Medications Safe for Long-Term Use?
Approved dosing chart for how long to take and amount of PPI