Hello @Noma Zareen
It seems that there may be some sort of corruption on the system. I would recommend first of all to run a repair of the Windows image:
If the updates continue failing I would recommend to Reset manually the windows update components, from a elevated command prompt, following the commands in the next guide:
https://learn.microsoft.com/en-us/windows/deployment/update/windows-update-resources
As per the wireless network, if still fails after previous actions, the recommendation would be to reinstall the device and latest drivers from Device Manager.
Hope this helps with your query,
---------
--If the reply is helpful, please Upvote and Accept as answer--