Petrol or diesel? Gearbox fault message often appears due to low battery voltage and also if the car is moving but the engine is not running. so your problem is likely to be to do with the engine cutting out rather than a gearbox fault.
It's normal to introduce yourself with more details of the car in the intro section, it's also worth doing a site search for answers.