ThereIf there is possible leakage to earth leakage in your system.
For example an RCCB rated 100 mA, nominal voltage 240 Vac.
Since R = 240 V R=240V/ 100 mA100mA = 2.4 k&ohm4kΩ, this is the minimum resistance at 240V before your 100 mA100mA RCCB could trip. If your resistance drops below 2.4 kΩ4kΩ; (for example 2.3 kΩ3kΩ;), since I =VI=V/R this current passing through RCCB is 104 mA, already exceeding, and voila it trips the RCCB. This is the situation if it trips without lightning.
In the same way if voltage is coming from lightning, it could be 40 kV, while your resistance is only 300 kΩ300kΩ. I = 40 kV I=40kV/ 300 kΩ = 133300kΩ; I=133 mA, which already can cause your RCCB to trip.
My suggestion is to check any leakage that could possibly less than 400 kΩ400kΩ. Normally, ensure your insulation resistance is more than 1 MΩ.1MΩ