OK thanks.
As I suggested earlier, going from scratch is the easier way to pin the source of issue, you might still want to do this, its time consuming, but that will eliminate possible hardware failure.
Why I'm suggesting clean install from scratch, because you could replace hardware, but at the end of the day, you might be back to square one and be disappointed.
I asked for screenshot because if you haven't heard before, AMD's earlier production of 5000X/5950X had B0 Stepping, it was process the way they applied thin lawyer of silicone and metal to the chip single silicone and single metal.
Nearly year later, they have changed the production process of 5000X/5950X to single lawyer of silicone and 2 lawyers of metal and therefore was B2 Stepping. AMD never said anything about what really improvements they made, but that process supposed to help thermals and for example for 5950X stock clocks were 3.4GHz and 4.6GHz now with the B2 Stepping that CPU could reach peak of 5GHz at stock, not on load, but for single core workload.
Weeks ago I have been researching about that and I came across video explaining that, but in the mid of the video it was said that with the B0 Stepping the chiplets had some issues, it was veg info, nothing further was said and for the life of me I cant find that video now, but I know from my own experience that my first 5950X was B0 Stepping and it was flaky, that doesn't mean the B0 wont perform admirable, but I'm wondering if the mentioned chiplets exhibiting issues you seen now after year, but I don't know, that's why I'm suggesting do the troubleshooting first.
Put it this way, 5950X is a good chip, but quite a bit of people had random reboots and freezes at first, so this could be related, but again, please don't just take my word for it and by first doing the extensive troubleshooting, you might find exactly the problem.
Here is mine: