Modern Windows should boot in UEFI mode with CSM off.
The Compatibility Support Module lets a new board boot old "Legacy/MBR" systems. Windows 11, Secure Boot and Resizable BAR need UEFI mode instead.
If Windows was installed in Legacy mode, turning CSM off stops it from booting. Check first: press Win+R, type msinfo32, and look at "BIOS Mode". BIOS Advisor shows this too. If it says Legacy, the disk must be converted (Microsoft's MBR2GPT tool) before CSM can go off.
A free, read-only scan finds device problems, slow memory, wrong slots and BIOS settings, and explains each one.
Scan my PC free