There are a number of BIOS settings that can impact the boot time. There is a "splash screen" that takes up a few seconds. The POST, mostly testing RAM, can sometimes be set to quick or long. The boot order may have it looking for non-existent devices before finding your M.2 drive. I have also seen boot delays to allow devices to finish initializing before the computer tries to access them.
All things to check.