I've been trying to disable CSM to get Secure Boot working properly in anticipation of Windows 11. However, when I do this, I get no video output from my graphics card (GTX 1070 with latest drivers), and 4 beeps (1 long, 3 short) which indicates a graphics card error. I then have to connect HDMI to my motherboard so I get an output and can enable CSM again which makes everything work fine. I've been pulling my hair out the last week trying to figure out what's wrong, but seemingly very few people have this issue and I can't seem to find a fix. Any help would be much appreciated.
GPU: GTX 1070
Motherboard: Z270-E Gaming
GPU: GTX 1070
Motherboard: Z270-E Gaming