High temperature and overvoltage can be tough on electrolytic capacitors. Check line-side diodes to be sure one didn't fail, injecting AC into the DC bus/capacitor(s). Sometimes smaller VFDs become such a narrow-profit commodity that it’s cheaper to do a wholesale replacement. Some make good boat anchors—many do not.