If I type "electrical panel lifespan" into Google, I get a lot of results from electrical service providers that panels and circuit breakers both wear our after several decades, and require replacement. Some suggest as short as 25 years!
I'm more than a little skeptical of this. I don't know of anything in the NEC that requires replacement of a panel or breakers. Also, given the source, I suspect a large conflict of interest is at work here, and these electricians are attempt to install fear into people to sell them a product they don't need.
Is there any serious merit to this? I've no doubt that a breaker that trips all the time might need to be replaced, but in all the houses I've lived, breaker trips are rare.