I have an Astra G with the Z14XE engine in. When it is on warm up, the car runs fine. Once it has warmed up, the engine cuts out when changing gear or anytime when the clutch is down, now and again though.

The EGR valve has already been changed for a known working one.

Does anyone have any ideas what it could be?

Cheers, Steve.