Backup your files before making any changes in BIOS to ensure no data is lost.
Boot your PC into BIOS.
On the Security tab, ensure CSM Support is disabled, then in the Secure Boot section, select the 'Restore factory keys' or 'Install default Secure Boot keys', and also try changing the Secure Boot mode from Custom to Standard.
Then check if Windows will boot up with Secure Boot enabled.