Check your BIOS configuration. I have two NVMe drives and I remember having to change something in the BIOS or the 2nd M2 drive wasn’t detected. I know this was with drives, but maybe changing your M2 to a different slot, if you have one, may fix the problems.
Like someone else mentioned, you could be having a PCIe lane or BIOS config problem.