All I can tell you, seeing as it's an Auto and the engine actually stalled, is
that it's not necessarily a Gearbox fault.
Being an auto, there is a fluid drive between the Engine and the Gearbox,
not a direct mechanical link. So there can be some variance between the
input and output speeds of the gearbox.
The ECU will have a set of parameters built into it, an operating envelope if you
like. If these parameters are exceeded, it will put the gearbox into Limp manual
mode.
When my Crank sensor was playing up, sometimes the engine would try to stall,
revs drop down, road speed normal. If it recovered without actually stalling,
the gearbox fault light would come on and the go into manual operation only.
All would reset on a restart.
Not saying this is what happened to you, but bear it in mind and don't automatically
condemn the Auto box.
There are some chaps on here that are on intimate terms

with every nut, bolt,
and widget on the diesels, and I'm sure they'll be along soon with a check list
for you to carry out.