Hrm. Two things come to mind. One, your ram is throwing errors which corrupts the data flow. Two your M.2 is doing that directly so the loaded data is corrupted and fails badly. With the crashes coming from different sources each time this leads to memory failure or massive failure in the M.2 drive.
Quick way to narrow the error to one or the other is to boot from another drive.