For an M.2 PCIe drive to function, it normally needs to be booted using the NVMe driver in the UEFI Bios. So I would certainly use the UEFI install.

If you are running it from a legacy install, you may be bypassing the NVMe controller. In device manager, look under storage controllers to see if it is showing and how it is designated.