Please uninstall failure installation cleanly, then download media and run the Setup from the ISO file as administrator.
- Remove all SQL Server components from 'Programs and Features'
- Backup the registry
- Delete the following keys in regedit: --HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server --HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSSQLServer
- Go to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall and delete all the sub-keys referencing SQL Server
- Go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services and delete all the keys referencing SQL Server
- Reboot the machine
- download media and run the Setup from the ISO file as administrator.
If it is still not work, please share us the sql server setup log include summary log and detail log for analysis. You find them in C:\Program Files\Microsoft SQL Server\160\Setup Bootstrap\Log with one folder per installation attempt.
If the answer is helpful, please click "Accept Answer" and kindly upvote it.