Please ensure that the ISO file name you're running for installation does not contain spaces; if it does, replace them with underscores.
Please ensure that the installer is run with admin privileges.
Here are a few suggestions you can try in the order presented.
1.Rebuild the WMI repository.
Open console command
Run MD with administrator privileges.
Stop the WMI service:
net stop winmgmt
Rename folder %windir%\System32\Wbem\Repository to other one, for backup purposes.
Start the WMI service:
net start winmgmt
2.Fix problems that block programs from being installed or removed
Use the tool to remove the existing SQL server and repair the registry.
3.After completely uninstalling SQL server, install the Express version.
4.Reinstall the system, opting for a stable release that has been available for a while.
Best Regards,
Mikey Qiao
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".