Windows restarts and checks the System Failure Box automatically

Hello!
I am having a problem with my computer. I restarted my computer as per instruction of Control Panel. After restarting It was fixed for a while. But, after some time it has restarted automatically. I also unchecked the System Failure Box but unfortunately when I went back to the options the unchecked box checked automatically. I don’t know what’s going on with my computer. I am wondering if you can help me out. Thank you.
