To do this, open the PowerShell (just type “powershell” into the Start menu Search, then right-click it and “Run as administrator”) and enter the following command:
Get-AppXPackage | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
That will re-register and reinstall all Windows apps, hopefully getting the Settings app (and others) back to full working order.
https://www.maketecheasier.com/fix-settings-app-not-working-in-windows-10/