If you use an AIO cooling system in your PC you be unaware that it may need servicing every now and again. In my PC I have installed the Be quiet! AIO silent loop cooling system. You may get an air lock in the pump of the liquid cooler.
My PC decided to shutdown due to CPU going to 80C. After I restarted the PC I checked the CPU temp and sure enough it was going high again very quickly.
Just to be sure it was not some app going crazy I tested directly from the BIOS, as you can see all the temps in there. The BIOS view was also showing high CPU temp in there. When in the BIOS use SMART FAN 5 App to check temps. The screenshot you see was done in 2017 so this AIO is still going strong.