URGENT!! M.2 SSD + Win8.1 = Error

Just got done building a pc for a client, however we get an error message saying that windows cannot located or create a partition on this drive. We even set it in the gigabyte bios (classic menu) to windows 8 and enable RAID and CSM (what is that?).

Specs:

i7 4770
Corsair H80i
Gigabyte GA-Z97X-SLI (F6 (latest as of this post) BIOS)
Samsung XP941 M.2 SSD
16GB Corsair Vengeance memory
Corsair 300R
windows 8.1 64-bit

Note: This is the first time I've ever installed an M.2 drive, so I don't know if there are any extra loop holes you have to go thru.
 
Solution
I dont have CSM on here with 8.1 64 bit. Its fine. CSM (I think), is like a compatibility option

Is UEFI and secureboot on then? Disable CSM. Does the BIOS detect the M.2?? See if its enabled. There maybe an option in the BIOS to disable / enable it
I dont have CSM on here with 8.1 64 bit. Its fine. CSM (I think), is like a compatibility option

Is UEFI and secureboot on then? Disable CSM. Does the BIOS detect the M.2?? See if its enabled. There maybe an option in the BIOS to disable / enable it
 
Solution
Actually we figured it out, gigabyte motherboards are really picky with M.2 drives and after researching we figured it out. We had to enable RAID, then when we got to the part where windows couldn't install anything, to install the raid driver via a USB drive.

Thx for helping Paul, ill still give you a best answer since you have helped us narrow down the problem.