Lithium batteries do degrade over time, and are normally rated for a number of charge and discharge cycles. Like the solar panels, even if the batteries are rated for 10 years expected use, they will not suddenly stop working, you would just notice a decrease in the maximum stored capacity.