M.2 drives can be installed with earlier operating systems if the hardware manufacturers have included support for them in their drivers. It is reckless to hope for this since all versions of Windows, except for 10, are no longer officially supported.