To add my 2 cents: I had the exact same problem with my i160 from 2019. BSOD, reboot into Bios, M2 not showing up. I've contacted tech support in October 2021, still within the warranty and received a new (the same) SSD. I've installed it and the problem was gone for about 4 months. Then it returned and I've installed a Samsung EVO, the problem was gone for about 2 months.
At first it seemed to be temp related, but the problem occured right after the 1st boot in the morning. I tried to run it with an open case - the temp stayed below 60°C but it got worse, maybe less BSOD but still stuttering and then not responding at all... so the SSD can't be the issue. Two days ago I've installed a new mainboard. Asus ROG Strix Z370-I Gaming. It has a similar layout and is compatible with the rest of the hardware (with new firmware to support 9th Gen CPU). The Asus has the SSD mounted on the front (instead of the back like the original MSI) and it's under a heat sink. The problem is, that without much air flowing through the system, the temps still climb to 65°C idle. But again, the SSD should handle these temps.
While gaming and the main fan speeding up, the temp stays again below 60°C. So far so good, the issue was gone at once, everything is running smoothly.