Hi, I'm Bernard, a fellow Windows user. I'm happy to help!
To reinstall Windows Security/Windows Defender, kindly follow the steps below:
Open Terminal (Admin) or Windows PowerShell(Admin) (Press Windows key + X then click Terminal(Admin))
Copy, paste, and enter the command below:
Get-AppxPackage Microsoft.SecHealthUI -AllUsers | Reset-AppxPackage
Then hit Enter. Once the process is done, restart the PC and check.
If the issue persists, I suggest doing an in-place upgrade, which will update the device to the latest version and repair all issues without deleting any files.
Kindly follow the steps from this link: