Both PV+ and PV Standard terminals store the operating firmware and user configuration in nonvolatile Flash memory. As far as I know, the battery runs only the realtime clock.
If your terminal is "losing its memory" it is almost certainly damaged.
So the follow-on questions are:
Is this a PV+ or PV Standard terminal ?
What is the firmware revision ?
Is the user program stored on internal flash or removable flash memory ?
Does this "memory loss" happen only on power cycle, or does it happen during operation ?
If this is a PV+, it can be confusing that the terminal can end up not being set to run the current program but rather to run the previously designated program on powerup. This could look like "losing its memory".
Post more !