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.
For more details