Generally the battery will out last the rest of the car. The warranty on the battery is normally 8y/100000 and it will absolutely last longer than that.
Batteries that out live their car are already a thing and getting a second life as static power storage. I know if some in homes, but I also know of plans to have them in big banks for grid level backup.
There is a lot of FUD paid for by the oil industry on this subject.
BUT in EV circles, you see stories like:
https://insideevs.com/news/592845/tesla-model-s-passes-1-million-miles/
Generally the battery will out last the rest of the car. The warranty on the battery is normally 8y/100000 and it will absolutely last longer than that.
Batteries that out live their car are already a thing and getting a second life as static power storage. I know if some in homes, but I also know of plans to have them in big banks for grid level backup.