Others have asked some very good questions that need answers in order to help. Namely...
What motherboard do you have (and what BIOS, and I'll pre-emptively say updating it if it's not at the latest version might be a good idea)?
What CPU do you have?
These matter insofar stabilizing a RAM configuration. You're running a pair of dual rank DIMMs. While this is a little lighter than four DIMMs, especially four dual rank DIMMs, I could see, say... a lower end motherboard and/or earlier Ryzen CPU (namely, Zen or Zen+ as opposed to Zen 2 or Zen 3) having issues with that at 3,200 MHz+. Earlier Ryzen platforms were known for failing to do those once-higher speeds with four DIMMs and probably a pair of dual rank DIMMs too.
So here's what I'd do.
Set it to JEDEC default RAM settings (2,133 MHz). Then test it. The reason for this is you mentioned crashes and BSODs. The purpose is to find out if you have bad RAM, or unstable RAM. If it's stable at stock, the RAM is (probably) good. If it's unstable at stock, the issue isn't with your PC and you need to work on a return or RMA (if the time window is still short, Id do a return with the place of purchase).
What if it's stable at stock but unstable with XMP? That's where you need to ask yourself a question. Are you fine with tuning it a bit and perhaps forgoing some frequency? You'll probably be best served by setting the XMP profile so it sets the voltage and timings, but then simply reducing the memory speed to 3,000 MHz or 2,866 MHz. I'd imagine those would be stable, and wouldn't lose you much performance.
If you want to tweak further, you could try lowering timings to counteract the lower frequency a bit, but... that's where my ability to help helps as that's a bit beyond my knowledge. But it's something you could look into if you wanted to get everything you could out of it. Otherwise, just going with "XMP at reduced frequency" would be fine enough for me if it's stable.
Not ideal, but those older Ryzens and lower end motherboards have their limits.
If you have a decent motherboard and a Ryzen 3000+ though, then... I'd say it should definitely be stable with two dual rank DIMMs at 3,2000 MHz. At that point I'd probably return/trade the RAM in for something else.