If the error doesn’t go away after a PC reboot, then you need to follow the steps in this guide to resolve this.  The error message usually looks like as below:

HAL INITIALIZATION FAILED 0x0000005C

You will have to boot the PC into Safe mode with Networking mode using the Advanced startup options which can be accessed by pressing F2 or F8. This depends on OEMs implementation. Once there, try the following suggestions. 1] Remove external hardware Make sure to remove any connected & external hardware when upgrading or updating. Many a time Windows update gets stuck because it tries to get a driver for the connected hardware which can be done later. 2] Turn Windows fast startup off Windows 10 Fast Startup mode allows the computer to boot up rather quickly compared to the cold boot. It makes sure the kernel session is not closed, but rest of the state hibernated. You need to turn it off. 3] Update Device Drivers: Check with Windows Update, and see if there is an update pending which relates with your Device Drivers. If necessary, you can always install them manually from the OEMs website. 4] Repair hard-disk errors In the case of errors on the hard drive, the update will fail as the system will think that it’s not healthy. You should run chkdsk in the command prompt to resolve those issues. If this cannot solve your problem, you may have to think about replacing your hard drive. 5] Run DISM ToolWhen you run DISM (Deployment Imaging and Servicing Management) tool, it will repair Windows System Image and Windows Component Store in Windows 10. All of the system inconsistencies and corruptions should be fixed. You can either use Powershell or command prompt to execute this command.6] Disable antivirus It is always a good idea to temporarily disable the Anti-Virus and Security software. You can either disable such software or completely uninstall them till you fix the issue. If you are using Windows Defender, it is easy to disable it for troubleshooting. 7] Perform Clean Boot If nothing works, you can perform Clean Boot and troubleshoot the issue there. Let us know if these tips helped you to resolve HAL INITIALIZATION FAILED error code 0x0000005C on Windows 10.