I recently tried installing a new Ryzen 7 3700x in an ASRock AB350 Pro4 motherboard. I could get to the BIOS, but whenever I tried to actually log in to Windows 10, I got a BSoD with a driver related error message. However, the actual specific message changed each time. My BIOS is up to date, and when I put the CPU I was using before back in, it worked, so I think it must be a problem with the CPU.
Your motherboard probably causes different error messages. You can reduce your problems by purchasing a x570 or b550 motherboard as soon as possible.
I would suggest starting with the following:
If none of these two solutions works it would be good to have more information, in particular: