Solar panels only last 20 to 25 years as well. We put an array up with a 80 year pay back. Leadership would ask me what the payback was and were confused when I’d say “none”. They had to have the number though. I never recalculated the payback after a lightning hit took out 25% of the output and we had to pay a contractor to fix it.
But the batteries only last 7-10 years. Same goes for electric cars. Whatever savings you get from reduced fuel burn you will spend when it's time to replace the batteries.
The solar panels delaminate don’t they?