> My guess is electronics/software failure. At some point (15-20 years) there will be no compatible replacement parts aside from what was stockpiled during the production run.
What about the age-old problem of rust? Most cars, even most (all?) EVs, are still made of traditional metal frames and body parts. That's usually what tends to fail in unrepairable ways first, even with ICE cars.