I've had so many weird problems caused by (what turned out to be) failing RAM, that I swore off regular RAM years ago. I've since only been using ECC modules. Luckily most Ryzens support ECC, though not all motherboards have all the lanes connected, so if you go this way in the future, check the specifications first (Asus and ASRock usually support ECC, Gigabyte sometimes doesn't).
(Ryzens that don't support ECC are those that start with even numbers – 4xxx, 6xxx, 8xxx series)
Of course, right now any kind or RAM is too expensive.