I have the same exact problem, and we have almost the same build. Sometimes for a week, the computer would not experience any problems. But then, when my peripherals starts to lose power, it would happen continuously for that day.
Components:
GPU: Sapphire Nitro+ Rx5700 XT (1 month old)
CPU...