In the past I had bsod randomly. I thought it was a memory problem so i changed the kit(3200 mhz) but that didn't fix it. then i thought it was a ssd issue, but i installed windows on another drive but i had the same issue with the bsod. But then i changed the motherboards to x570 motherboard from b450 and it fix the bsod. but now im getting pc freezing. its not restarting or bsod but its just stopping.
Ryzen 5 2600
16gb g skill of memory 3200 mhz
TUF gaming X570 plus (wifi)
rx 5600 xt 6gb
512gb inland ssd (boot drive)
1tb harddrive.