Unlikely the whole battery will fail totally. Some cells may fail but can be replaced. Likely the battery capacity will go down and one may end up after 10 years with a car with a 320 km range vs 400.
Still make a very capable winter beater or commuter; which is what most 10 years old car end up being anyway.