Open a Command Prompt window as admin.
Set the boot loader to go to safe boot:
bcdedit /set {current} safeboot minimal
Restart and get into the BIOS, switch the SATA operation mode from RST to AHCI (press ctrl+s in the main BIOS tab in order the option to appear), save changes and Windows goes into Safe Mode.
Open the prompt again and remove the BCD value:
bcdedit /deletevalue {current} safeboot
Reboot and that's it.