Is is bellowing any black smoke out the exhaust when it does this? If so, could be a low boost issue.
Does the vehicle still have the EGR system functional? If so, the EGR valve could be leaking by causing you to loose boost. They are notorious for this!
Air in fuel could also be the issue which would not allow the fuel rail pressure to build to the required pressure which would basically starve the engine for fuel when demand required it.

_________________
Supporting Vendor and Moderator of LOST05 Jeep Liberty CRD Limited 
Ironman Springs/Bilstein/Shocks
Yeti StgIV Hot Tune
Week's BatteryTray
No FCV/EGR
Samcos/ProVent
SunCoast/Transgo
Carter Intank-pmp
2mic.Sec.Fuel Filter
Flowmaster/NO CAT
V6Airbox/noVH
GM11 Bld.fan/HDClutch
IronrockArms/wwdieselMount98 Dodge Cummins 24 Valve