Then they have to be replaced. And there STILL ISN'T any system or process for recycling lithium (lab only, nothing deployed or near to deployment for 5-10 years best case).
Part of why I used lead acid batteries for my solar storage - it's cheap, ubiquitous and environmentally far more green than lithium because of the existent network for lead and lead-acid recycling. Plus if it doesn't move (it doesn't) the much higher weight isn't a problem.