Due to a misconfiguration of the system's hardware
It could be due to malfunctioning RAM or a lack of memory.
It could be due to corrupted or damaged system registry files.
As a result of a virus or malware infection
Incomplete, invalid, or unsigned DLL files cause problems while installing programmes.
Either due to the lack of or corruption of hardware drivers.
Read more here:- https://www.datarecovo.com/how-to-fix-error-code-0xc0000005-in-windows-10/