Every time I eneble secure boot for windows 11 my pc doesnt boot and I have to reset bios settings by removing battary. Why is that?

So basically I want to update to windows 11 and I have to eneble 2 security settings TPM and secure boot I succesfully enebled Tpm but each time I try to do the same with secure boot my screen, keyboard,mouse are not working.I have tried every way to eneble it but I have the same result each time. What should I do

Motherboard:Gigabyte B450M DS3H

Bios model:f50