@audiofilo123 As a general rule of thumb, the cooler the amp runs the longer it will last. Electrolytic capacitors, which are used in the power supplies of most electronics, don't like heat and so last longer in a cooler environment.
To give you an idea of this, in tube equipment the filter capacitors might go about 20-25 years; in a solid state amp they might go 30-35 years.
Since class D runs the coolest of any amplifiers, it follows that they will also last the longest. Some class D amps easily rival the best of class A amps (whether tube or solid state) as well.