If you lose the neutral in TN-C-S, doesn't that mean you lose the earth as well?
You may be relying on a fault current path:
supply live->greenhouse->soil->substation Earth->supply neutral
whereas when islanded you have:
inverter live->greenhouse->soil
and nothing trips. If you have an additional TT earth, you go:
inverter live->greenhouse->soil->earth rod->Earth-*>inverter neutral
where * is the neutral-earth bond in the inverter.
Theo