If your system files are corrupted, built-in Windows 11 components, such as Windows Security, will not be able to run.
Defender will continue to provide security even for unsupported Windows 10 PCs. But Microsoft still wants you to move to Windows 11.