I bought a larger NVMe and successfully cloned my Windows to the new SSD. However, when the Windows boots up, a BSoD pops up with error code INACCESSIBLE_BOOT_DEVICE
.
Boot into Windows PE and launch the registry editor.
Click File > Load Hive
Open the registry file of the Windows installation to be fixed at \WINDOWS\SYSTEM32\CONFIG\SYSTEM
. The name off loaded hive can be anything.
Delete the key under HKLM\<loaded_hive>\HardwareConfig
Unload the hive and save changes.
Boot the Windows and cross your fingers.