After not getting any response, I started searching about this issue online and came across this guide. Actually the problem was happening due to the outdated system file.
So the first thing which I did I check the corrupted system file by following these commands:
DISM /Online /Cleanup-Image...