Bizarre Truck Issue?

So I have a 2006 Nissan titan with 4WD. About 250k and this truck has been good to me. Recently, my transmission is starting to slip but ONLY if my VDC is on? Any else have this issue? Is this the end!?