Inverters have IGBTs and capacitors, both of which are wear items. I don't have an EV, but just got solar, and my installer told me that I can expect the inverter will need replacing in 15 years.
And solar inverters push far less wattage at far more benign circumstances than cars' do, which push 100s of kWs peak in hot and cold, mud and rain.