Fix 1: try using a different brand memory card (example, a kingston, sandisk, transcend, etc) or try checking if reset problem still existing when there is no card while changing battery
Fix 2: if fix 1 failed, try using another battery
Fix 3: if fix 2 failed, try re-install firmware
Fix 4: leaving a charged battery in camera for a few days to recharge internal clock battery
Fix 5: clean the battery's contact area (with alcohol)
conclucion if all failed: those capacitors in internal cameras have a limited cycle life, leaving camera without battery for too many times, like those people prefer to keep battery out of camera when not using, may have got this issue.
last solution, send to service center to fix it.