The Ryzen builds tend to go like that. Here's my method.
1. Update the BIOS. I know some fear this but it's new and time to get current. Plus it's a Ryzen. You can't imagine how important this step is for those builds.
2. Reset the BIOS to defaults. Change only the minimum to get setup for the OS install.
3. Install the OS. (Windows for example.)
4. Now the fun begins. I disable Windows Driver updates. (Not Windows Updates, just the drivers.)
5. My choice on driver order is: Motherboard chipset, audio, video then the rest of the machine drivers. If there are apps to control the PC, those are installed.
At this point you should be OK unless there is something odd going on.
If there is some driver/app that crashes on wake from sleep that is looked into but there is no set way to go about that. Mostly I google it.
Just built a PC and thought everything was going smoothly until I started getting these BSOD errors.
First when I was in windows 10 settings and running "check for updates". I noticed one of the updates failed for some reason because there was files missing. So I retried and then got a BSOD (can't remember the error code).
Second time I was downloading drivers from Google Chrome for my GPU and it happend then too.
With all of this happening I was told it could be a RAM issue because I turned on XMP in the bios and set it to the highest profile, so I turned it off and ran the pc as usual.
Can't exactly remember what I was doing but I got another BSOD (Critical Process Died) and looked up fixes for it. Ran SFC scans and there was something that couldn't be fixed. Ran DISM aswell and thought it was fixed after restarting.
Fourth time happend when I woke the computer up from sleep mode. This is the Critical process died error that I got. I let the computer be for a few seconds and it restarted but didn't run Windows...it showed a black screen and had "Reboot and select proper boot device....." So I turned it off and on again and windows ran as usual.
This happend once more to me after waking it up from sleep mode. So at this point I decided to restart windows from the windows settings. Did this and tested to see if it was fixed by putting it in to sleep mode and waking it up but I got the same error.
Then I reinstalled windows from the usb drive (downloaded the software from Windows website) and did the same test and got the same blue screen with the same error.
Specs of computer:
CPU: AMD Ryzen 5 2600
Motherboard: MSI B450 gaming pro carbon ac
Ram: 2x8 (16gb) 3000mhz Corsair vengeance LPX
GPU: MSI 1660 TI gaming X
SSD: WD SN750 500GB
HDD: WD 1TB
PSU: Corsair - TXM Gold 550 W 80+ Gold Certified Semi-modular ATX Power Supply
Checked the parts on PcPartPicker before buying and all seemed fine.

Chowhound
Comic Vine
GameFAQs
GameSpot
Giant Bomb
TechRepublic