The ionization of air which is in between the bottom as well as the nimbus clouds generates a discharge in the clouds to the ground. Nimbus clouds induce the biggest surges since they are what make lightning.
The https://amaanuyzp506590.blazingblog.com/30450150/solar-junction-box-manufacturer-an-overview