Sounds like things a broken, some things to try;
- sfc /scannow
- dism /online /cleanup-image /restorehealth
- reset windows update https://learn.microsoft.com/en-us/windows/deployment/update/windows-update-resources#reset-windows-update-components-manually
- repair install by running setup.exe from the root of install media
- stand up a new one, patch fully, migrate roles over.
--please don't forget to Accept as answer if the reply is helpful--