|Just in case it's a power issue, check that the camera's battery contact terminals are clean and touching the battery. |
It's possibly detecting a problem and shutting down because of it. Does it give any message before shutting down? You can check the manual and see if you can force a reset to its original configuration but it sounds like an internal problem that may not be repairable by the user.