Since this is your first UEFI install, you might want to attach your Disk Management picture so we can check your configuration.
But you should be able to disable the CSM since you are running Windows 8.1 x64, assuming any other PCIe devices have UEFI OpRoms, such as the Video card.
If it won't boot, set the CSM back to enabled. From the message you got, I would guess the system is not seeing the Windows 8.1 UEFI Windows Boot Manager for some reason.
The CSM setting on my X99 board can be problematic. Unless the last Bios update fixed it, some of those options may not work as designed for non Secure Boot capable OSes.
Maximus Z790 Hero,
Intel i9-13900k
Intel BE200