I was able to resolve this case by downloading the required update via Microsoft Update Catalog. This error usually means something wrong with the network it can't connect to windows update server.
https://www.catalog.update.microsoft.com/
Download the necessary KB - install and it will prompt to restart the device once it's done.