Two years ago when I was considering installing a battery along with my solar panels, here was the estimations I did:
1. Additional cost of installing a 13.5kWh Tesla Powerwall was quoted as being around £12,000
2. Warranty was 80% capacity after 10 years
Now, my experience with batteries in general is that once they start to go, they deteriorate pretty rapidly; so 80% after 10 years to me basically account 10 years as the lifetime of the battery.
£12k for 10 years is £1.2k per year, or £100 per month: that is, the battery would have to allow me to save £100/month in electricity just to break even -- and that's before factoring in the cost of capital (i.e., if I take that £12k and invested it somewhere else, I'd have a lot more than £12k after 10 years).
Even if the batteries managed to eke out a reasonable capacity for 20 years -- which seems pretty unlikely to me -- I'd still have to somehow save £50/month to break even. All in all the battery just didn't make financial sense for me as an individual.
One expects that the companies doing this on an industrial scale have done the math and managed to find some economies of scale that make it profitable; but it's not out of the realm of possibility that due to a combination of optimism, overselling on the part of battery companies, and FOMO, that they've drastically overestimated the performance of their batteries, and are going to find 15 years down the road that they're beginning to fail without having paid back the capital investment used to buy them.