Thanks for the screenshot. The problem you have is that in the folder C:\Windows\System32\SecurityHealth\10.0.27777.1008-0, SecurityHealthHost.exe is corrupt. As a result, the SecurityHealthService isn't running, so trying to install SecurityHealthSetup.exe will fail.
The solution is to delete the folder C:\Windows\System32\SecurityHealth\10.0.27777.1008-0 then reboot the computer.
The easiest method is to use IObit Unlocker.
https://www.iobit.com/en/iobit-unlocker.php
After installation, right click on C:\Windows\System32\SecurityHealth\10.0.27777.1008-0 and select IObit Unlocker.
In the resulting dialog window, click the drop arrow next to the Unlock button and select Unlock & Delete.
Reboot the computer.
The Windows Security UI should now open and SecurityHealthService should also be running, in which case you can run Windows Update to get the latest SecurityHealth build.
You can also download it from https://catalog.s.download.windowsupdate.com/d/msdownload/update/software/defu/2026/07/securityhealthsetup_660338b236d35588cb1e6c4db2021ed679653c01.exe Right click and run as administrator to install.