I have just installed a nvme M2 card (Samsung 980 1T PCIe 3.0) on my ASUS Prime B250M-A motherboard that has two NVME M2 slots and managed to install Ubuntu on it. It was seen during install.
But the motherboard won't boot on it. I have to start the bios and manually select the ubuntu disk in some boot list showing up. Then Ubuntu will start, but it's slow to start due to errors. Ubuntu boots faster on my old SATA SSD disk.