If it keeps saying your drives missing, and you hang replaced your drives, then the next step is the main board.
I would inspect the m.2 sockets carefully. It would be easiest to use your phone macro setting if you can.
You might also have a heat issue. Check your airflow to be sure you have sufficient flow over the drives and it exits.
Depending on your board, the m.2 lanes connect directly to your processor or possibly your chip set. One of those may be defective. You should check your board documentation to determine which.
If you think it is an issue with the m.2 process you could consider says SATA SSD. It's not as fast, but it's still plenty great compared to spinning disks.