I had a similar issue at the beginning of the year; some g. skill ddr4-3200 (with xmp) started bit-flipping on me and causing crashes.
Sure enough on memtest64 those issues were clearly diagnosed.
Haven't changed to ECC hardware, disabling xmp to ddr4-2333 helped with stability.