I experienced this similar situation a couple of years ago. My all-AMD desktop machine would randomly reboot. Your hardware is newer, but it’s AMD. For that desktop machine, I applied a couple of arguments to the kernel boot command line (in GRUB). I actually found the fix posted in a thread in bugzilla.kernel.org (link in my Reply below).
I spent a few minutes to find my Reply from a couple of years ago … and the link to that thread is just below … you might want to do a quick read.