Usually when the PC restarts x amount of times after a bios change to RAM is because the settings are not working for the sticks. Could be voltage (may need slightly higher for stability), FCLK (for ryzen should be half of your speed, so 3200mhz sticks = 1600). As others mentioned, bios could be it too. Try a lower speed, like 3000, and see if that works. If it does, do some testing to check stability of RAM. If all is well, maybe try to bump it up and test again if it posts ok. Ryzen is picky with RAM, but I would think the newer 3xxx shouldn't be as hard (I've tried the older 1xxx and 2xxx chips). I have a 3900x and it was a simple overclock (xmp) but I did have to increase voltage to 1.38 for stability. Also, CPUz is a nice software to check RAM speeds as well, not sure what application you are using. Sometimes, it could be a single ram stick too. Try use only 1 RAM and test, then switch. Might find a faulty stick.
And I'm sure you are saving the settings when exciting bios right (usually F10)? Just making sure
My 2 cents, hope it helps