I have experienced this problem for the first time like 2 months ago. Sometimes when I work on my PC it out of nowhere says Turning Off, then It turns off and turns on for like 2 seconds and immediately shuts down repeatedly. I have to turn off the power supply button and let it be for some time ( maybe like 1-2 hours) and then It works normally like nothing happened. This does not happen everyday, it happens maybe like once per two weeks. Also sometimes when I wake up in the morning the PC turned on by itself while I was sleeping. Thank you in advance for all your help and answers and excuse my english please, I am not a native english speaker.
I didn't find the right solution from the Internet.