A thermostat that loses settings may have weak batteries, wiring problems, or internal failure
https://floridaacservice670.brightsora.com/posts/what-to-do-when-your-ac-stops-working-during-a-florida-heat-wave
A thermostat that loses settings may have weak batteries, wiring problems, or internal failure. Replace batteries first, then consider replacement if the issue repeats.