Front driveshaft slips insideTransfer case like it isn't engaging all the way on 2008 Chevrolet Silverado 2500 HD

Mostly when torque applied

Do you have it in 4 wheel drive when checking??
Yes, when I step on the gas it slips...a mechanic, without looking, said it might be a sensor