I know this a bit of an older thread, but maybe your issue is/was as mine
I was getting random restarts - zero explanation, and that is after COUNTLESS of Windows 11 and Windows 10 clean installs. I even ran Prime95 for hours, did Test Mem 5 for hours too, nothing...no instabilities, but still random restarts
I had Curve Optimizer set up on my 7950x3D, and then I put it to auto, to see if it helps. Still restarts. Randomly, while idling system
Today after another restart I went into Event Viewer > Windows Logs > System
Then I looked at all the error and when I saw a gap in time, since my computer restarted overnight. I saw a red error
The computer has rebooted from a bugcheck. The bugcheck was: 0x00000139 (0x0000000000000003, 0xfffff281cafda0f0, 0xfffff281cafda048, 0x0000000000000000). A dump was saved in: C:\Windows\MEMORY.DMP. Report Id: f621a7da-575d-4db5-ac75-954642ac54f5.
Which could be something with memory, but here is what it said to an error 3 seconds before:
The Secure Boot update failed to update a Secure Boot variable with error Secure Boot is not enabled on this machine.. For more information, please see https://go.microsoft.com/fwlink/?linkid=2169931
I went into BIOS and I was dumbfounded, indeed it had Secure boot to Custom, and running not in UEFI mode (Windows 10 and Windows 11 are UEFI systems), but running in Other OS (which is legacy operating systems)
In short, I switched it to UEFI, and set Secure Boot to Enabled or simply switch that option to "Secure Boot" depending on BIOS.
If your system does not boot, that means you might need to reinstall Windows, as sometimes even switching back to "No Secure Boot" can already do harm to OS, I had it done to me in the past (but not in this case).
It was a roll of a dice, as switching Secure Boot to on can also break the system.
The reason is you need to install your Windows system in option that you will use (a lot of times, but not all the time, depending on your motherboard).
It also explains why Windows 11 would sometimes refuse to install, and read "Your system is not supporting by installation" or something like that, when trying to clean install. Which led me to install Windows 10 to see if my restarts disappear.
I am not saying your CPU did not fail, but perhaps it is doing just fine, but you had Secure Boot option off, and not in UEFI but in Other OS.
If I didn't read that error, I would have no clue.
Best of luck.
If that CPU is working, sell it :D