If I was one of these insurers, I'd be insisting the vehicles were maintained to an extremely high level of roadworthiness by mechanics that licensed or certified. Home DIY would be forbidden, as would any modification to the hardware or software. Think something like happens now for aircraft.
I doubt that lack of roadworthiness on DIY-maintained automobiles is a significant contributor to fatal and serious collisions. I also think most DIY-maintained cars are just as well-maintained as their same-year counterparts that only see dealerships (sometimes more as the DIY is likely to be an enthusiast and unlikely to be deterred by cost pressures relating to the $130/hr service rate).
No one will pay to take responsibility for someone else's software bugs. That deal won't sell a single car.
But how will that be proven? We can't exactly pop the lid off the driving algorithm and say "ahh, there's the problem. Time to take it to court".
The way to determine the guilt of a driver, human or electronic, is through their actions.
And that is as it should be. The costs will be baked into the price of the vehicle. This aligns incentives. The manufacturer wants to pay as little as possible, and the owner will want to be safe.
With the car recording video and other data, determining what actually happened should be simple and reliable.
Note that the car owner no longer pays any insurance in this system.