Yes, you’re correct. The weakest link in a PV system is the Inverter. Just a like the chain on a bicycle or timing belt on a car engine, you can change the inverter periodically and your system is good to go for another decade-plus.
It’s easy to replace and your PV solar panels will continue to generate and provide for you for decades to come.
I recommend asking a local PV solar installer to replace and then you can enjoy the benefits of PV going forward.
Hope this helps.