I recently bought an ASRock Fatal1ty x370 and ryzen cpu. I put everything together in a new corsair air 540 case. Everything was new in my upgrade apart from my graphics card which is a NVidia GeForce gtx 1060 6gb and a hard drive that was in my old set up. When I finished putting everything together I turned the computer on only for it to give me a "46" error which meant that there was a problem with my memory.After fiddling around with my RAM I tried turning it on again only to be greeted with another error something along the lines of A6 meaning that there was a problem with my sata (Oh yes btw my motherboard hasthis thing where it gives me a code to tell me what Is wron)g. I tried to reboot my pc and go into the bios, only to be greeted by everything being registered perfectly fine but as soon as I leave to start windows I get another blue screen and the process starts all over again. Does anyone know the definitive answer to what is the cause of this?
Do I need to format my harddrive?Do I need to throw my RAM across the atlantic ocean? DoIneed to update my bios? Please help
Edit:The blue screen is not on long enough for me to get any error codes from it, the bluescreen is on there for about a second if that and they it turns black and restarts just to do the same thing again unless I boot the bios or something. REALLY NEEED HELP PLEASE 😀
Do I need to format my harddrive?Do I need to throw my RAM across the atlantic ocean? DoIneed to update my bios? Please help

Edit:The blue screen is not on long enough for me to get any error codes from it, the bluescreen is on there for about a second if that and they it turns black and restarts just to do the same thing again unless I boot the bios or something. REALLY NEEED HELP PLEASE 😀