Hi mate,
When the engine management light comes on and you lose power, it sounds like your going into SAFE mode. If you have the fault codes read, it should pinpoint what exactly is putting it into safe mode, HOWEVER, its common for the connection on the MAP sensor to be rubbed/knocked by the plastic engine cover.
If you dont know where the MAP sensor is on the JTD then have a look at this
GUIDE.
Remove the electrical multi-plug, make sure all 3 of the pins are fully down and are not bent/corroded on both the MAP sensor and the wiring multi plug. Also check the wires for any splts/ breaks.
Plug it back in and go for a drive down a bumpy road. If the problem doesn't occur, id suggest its fixed!! Worth a go before you start paying out for diagnostics etc. Could be many things but the MAP sensor one is common.
Oh and the reason this fault (ie with the MAP sensor connection) occurs when accelerating, is the twisting motion of the engine on the engine mounts is enough to move the wring harness connected to the MAP sensor.
Failing that, fault codes should help!
Hope that helps,
Alan