I had a 3700x CPU that would lock the system up randomly. I was on Linux with an Nvidia GPU so the symptoms don’t match up. I think it’s worth borrowing a friend’s CPU, or buying a used one locally, to test. If you buy a used CPU locally for $50, you should be able to sell it for $50 after your test.