2009 2.2 diesel GB fault

My wife’s car. We get gearbox fault light up and the car drops down a gear and won’t change up, even if we try the manual side of the gearshift. Easy to replicate the fault by pushing the accelerator thou to kick down.
If we stop the car and switch off it’s fine upon restarting, however if you accelerate hard it repeats the fault.