Eventually, some electric car will lose all its brakes. It's the law of averages.
You'd be hard pressed to find any stories out there of complete and total automobile brake failure. You are talking a literally infinitesimal risk scenario that literally has probably not happened to any vehicle out there since split braking systems (designed to avoid complete and total brake failure) became standard in the 1970's...
Yes, some people will "claim" their brakes failed when in reality they may have just lost their brake booster - the most common brake related issue in reality. There's actually a lawsuit on this exact issue against GM right now, but the plaintiffs claim "brake failure" but it's clear there brakes continue to work just fine with increased pedal pressure. In this scenario you still have perfectly functional brakes, you just need to push the pedal a lot harder to get them to work. Most people don't understand that and would just say they "failed", which wasn't the case.
A computer is far smarter than a human driver. If a booster fails, first off the computer will probably know about it and compensate perfectly find with increased pedal/system pressure seamlessly and automatically. If by some stretch then a brake line to the front brakes blows, a computer would then compensate again automatically by simply continuing to stop using the still perfectly functional rear brakes. Vice versa if the rear brakes fail, it would stop using the front brakes. If, by some incredible stretch of the imagination BOTH front and rear brake lines blew, then the computer would apply the physical E-Brake and stop that way instead.
ALL of the above scenarios are also
perfectly viable options for a human driver, but in this era when people don't even understand how to turn on their own headlights if the automatic feature stops working, or drive around oblivious in hot sunny weather with their rear wiper flapping away (but for 2 examples), well, a lot of people would rush to scream "brake failure". Not the case, and a driverless car will be far smarter than a human in this situation.
The situation you're trying to present as an in inevitability is really anything but. Maybe in the pre 1960 era full vehicle braking failures were a thing, but they simply are not anymore inside the last 40-50 years. It simply
does...not...happen. Especially on a commercial vehicle subject to inspection every 12 months.
Not trying to be a dick here, just stating facts.