I had a Ryzen 5700G fail on me.
I had a build that worked fine for a couple of years, and then started hanging or rebooting every couple of days. I tried replacing the power supply, which didn't fix the problem, so I ordered a new motherboard, which also didn't fix the problem. I was pretty sure that faulty memory would produce memory errors rather than hangs and reboots, but I ran a full pass of memtest anyway--no errors. So that left the CPU as the only possibility. I installed a 5600GT CPU and the computer is working fine.
I posted this because I've never heard of a CPU failing unless it was damaged by overclocking. Recent generations of CPU's have less overclocking headroom than older generations. Perhaps AMD didn't leave enough headroom on my 5700G, so that with the natural deterioration that occurs over time even it a CPU that isn't subject to the stresses of overclocking, the CPU reached a point where it couldn't function properly at stock speeds/voltages.