Software RAID wont boot if using NVMe drives

I’m trying to set up a server using software RAID1, created with the default installer. If one drive disappears, then I can still boot from the other drive, as long as it’s not NVMe drives.

The issue is that I can’t get this to work when using NVMe drives. If the wrong drive goes down, then I’m unable to boot.

This is the error message I’m getting:

mdadm: error opening /dev/md?*: No such file or directory
done.
Gave up waiting for root file system device. Common problems:
- Boot args (cat /proc/cmdline)
  - Check rootdelay= (did the system wait long enough?)
- missing modules (car /proc/modules; ls /dev)
ALERT! UUID=94944b6c.... doesn't exist. Dropping to a shell!

I’ve been searching for days now without figuring out what the problem is. Somehow it’s fine with SATA drives

This problem is easily re-creatable in Virtualbox too. SATA drives works, NVMe doesn’t.

Does anyone know what’s going on here?

I’d appreciate it if someone could help me out here as I’m stuck.