If there is a RESET button on the camera, press it (it returns the settings and micro-processor to “factory condition”.
But I doubt this will do the trick, buy its the place to start.
Could be as simple as a “sticky” button.
Or as complex as a defective “logic” chip.
Regardless, if a “reset” does not solve the problem, a trip to the service center is the only hope.