Most 10 kW solar batteries have warranties that guarantee 70% usable capacity after 10-12 years or a certain number of charge/discharge cycles. It’s worth noting that manufacturer warranties are typically quite conservative and the solar and battery equipment currently in deployment is far outperforming their warranties.
We simply won’t know exactly how long today’s batteries will last until they reach their useful end-of-life decades from now.