I have the same setup as you and I'm experiencing system shut down while playing a certain game ACC car sim, I've had to set the memory timing manually and it works fine during all other tasks except when i play this certain game.
Use the ryzen memory calculator and manually configure your ram setting in BIOS avoid using XMP profile.
The safe setup without system shutdown was to download clock the memory feq by 35.33 / fclk 1767 and set tight timings and now its running fine, it's certainly a BIOS issue.
3600 manual memory clocks, timings and voltage
These are my timings when running at 3600
Make sure you give enough voltage to the memory 1.45V works for me