I had a similar thing happen about a year ago.
At that time, I had recently installed a new windshield, and the service provider did not install the Rain Sensor.
So, for a few months, every Software update would fail, because the Hardware tests were failing.
You may want to take the car to...