The panels: Possibly a nearby lightning rod, however be aware there is no guarantee the EMI from a strike wont cause damage to the surrounding. not to mention the kick from the cable can break bricks if you confine it too much.
The Batteries? If lead acid, then good luck hurting them, You can spot weld with jumper leads off a lead acid without hurting them much.
If lithium and you where pretty much topped off, then things get interesting. make sure you have fire proof matting between any flammable surface or object and the battery pack... this should be standard practice.
The inverter? depending on the technology it will likely have some kind of inductor on the input, and if well built may have a MOV or similar spark gap to case ground, now this likely wont save it, but it will reduce the damage elsewhere.