So recently, I have been encountering problems with my computer lately.
The first has been trying to install the latest update for windows 10, but everytime it tries to install, it always ends up with the " Windows was unable to install updates undoing changes" message. The first few tomes this happened, I thought it was nothing to get worried about. After a few days I started getting black screens everytime I log in to my account. I've waited to see if the desktop would pop up but it took a whole 5 minutes to do so and the home menu wouldn't work either, and when I ran windows powershell, it seemed like it made it worse.

I've tried resetting my computer to factory defaults, but an error would come up saying that it was unable to reset my PC.

Help appreciated