I learn something new today that is EFI system partition (ESP) cannot be set active.
I don't know why Bcdboot and Bootrec commands does not work if you want you can replace registry hives and see this will resolve the error message.
Windows Vista/ 7/8/8.1/10 keep a regular backup of the registry handy in case you need to overwrite a corrupted registry. By default, the RegIdleBackup task runs every 10 days, so that’s as far back as you would lose if you replaced the current registry with the automatically backed-up files. You can find the backed-up registry files in \Windows\System32\config\RegBack folder.
Please boot your computer with Windows Setup Media and from Windows Recovery Environment start the Command Prompt.
Please type below commands into Command Prompt and for each command you have typed press Enter key.
Ren C:\windows\system32\config\SAM SAM.BAK Ren C:\windows\system32\config\SYSTEM SYSTEM.BAK Ren C:\windows\system32\config\SECURITY SECURITY.BAK Ren C:\windows\system32\config\DEFAULT DEFAULT.BAK Ren C:\windows\system32\config\SOFTWARE SOFTWARE.BAK Copy C:\Windows\System32\config\RegBack\SAM C:\windows\system32\config Copy C:\Windows\System32\config\RegBack\SYSTEM C:\windows\system32\config Copy C:\Windows\System32\config\RegBack\SECURITY C:\windows\system32\config Copy C:\Windows\System32\config\RegBack\DEFAULT C:\windows\system32\config Copy C:\Windows\System32\config\RegBack\SOFTWARE C:\windows\system32\config
This procedure assumes that Windows Vista/7/8/8.1/10 is installed to the C:\ partition. Make sure to replace C:\ drive letter to the appropriate Windows OS installed partition drive letter if it is a different location.
Above commands renames the registry files at their existing location, and then copies the registry files from the RegBack folder to the C:\Windows\System32\Config folder.