http://releases.ubuntu.com/18.04/
Download the desktop iso image.
Burn to cd and boot from it.
If it can see your m2 device during boot process then you know it is a windows driver issue.
If it can't be seen by ubuntu and it does show up in Bios, then I'm stumped.
If you can, then it would seem to indicate a driver problem.