The first thing I'd check would be CPU and GPU thermals. Shut downs like this can be caused by overheating and it's easy to check your temperatures by running a monitoring program like CoreTemp or Ryzen Master. As a rule I'd also redownload your motherboard drivers, and do a clean reinstall of your video card drivers using DDU. RAM related issues will typically cause a BSOD, but it may be worth running the Windows Memory Diagnostic or Memtest86 to scan for hardware issues with your memory.
Submit photos and a description of your PC to our build showcase
See other custom PC builds and get some ideas for what can be done
Services starting at $149.99