You need to find out what is causing the "unexpected system failure", PSU, motherboard, CPU or RAM.
First, is this a prebuilt system? Dell?
https://community.amd.com/thread/196209
If your system just randomly restarts, its probably a power issue.
Get a power supply tester and test the voltages.
When the system restarts are there multiple BIOS Beep codes?
Is your motherboard BIOS updated to run the processor you have? (should be version P4.40 or newer)
Is the RAM you are using on the QVL list for the Raven Ridge processor?
Is the RAM in the correct slots?