Sir bob.steel . . . . .
Looking at your PCB foil paths, that Varistor is being placed across from your solar bank input to ground plane.
I cherry picked the units on the suppliers options and I believe that the original unit is going to be / was a 40 /56V unit which starts avalanching at 40Volts AC or 56 VDC, the latter voltage of which, is
YOUR UNITS situation.
That PUFFED up unit has some serious overload subjected to it for a time. BUNCH of GOOD sunny days.
If you look at this major suppliers stock level of different varistor units you will find MASSIVE stock levels of 120 and 230 units, such as those what are used in line operated electrial equipment and AC power strips.
And then there are fast movers down in the battery voltage ranges.
AND THEN . . . there is the solar community and the popular choice of 48 V as the collectors output.
Check their stock level and you will see the particular and noticeable 3674 ---2965---1694 and 1308 units in stock. MOVERS !
The other aspect is the units power rating and that is dependent upon the diameter of the ZnO2 slug being used . . . .7---10----14--- and a final 20 mm.
By memory you should be able to differentiate as to the diameter of the original NAKED slug. . . .or you may able to reconstruct with the original units scraps.
The side leads bondings are those units real Achilles heel, but most, additionally rely upon a form fitting conformal coating for their extra protection, yours looked to be vinyl, but it just " couldn't take the heat " anymore.
If your NOW black covering might show traces of a different original color, that might tie into the original units brand, others use
BLACK for Panasonic . . . LITTLEFUSE and GE use
RED . . . Bourns / EPCO use
BLUE .
If my problem to solve I would be using use the heftiest 20mm slug size.
BUT in / if trying to go one step up in the initial voltage rating, just might then put you in harms way.
VARISTOR REFERENCING . . . . .
https://www.newark.com/w/c/circuit-...stor-case-style=disc-10mm|disc-14mm|disc-20mm
73's de Edd . . . . .
My E-mail password has been hacked again. That's now the third time I've had to rename the dog . . . now he just looks at me and gives me that quizzical, cocked head look.
.