The first thing you should try is a memory test. Windows 11 comes packaged with a tool called Windows Memory Diagnostic that ...
If your system files are corrupted, built-in Windows 11 components, such as Windows Security, will not be able to run.