Could it be the Idiot Switch that activates when you bottom out too often and don't lighten up on the throttle....LOL!!!
Just kidding, could you not find any loose wiring hanging down from somewhere like the transmission, transfer case, or brake/hub plate area, maybe a wheel sensor. It looks like some kind of a sensor, but then you would think that there would have to be a wire harness somewhere to make contact.
Limp it over to an auto parts store and get the codes pulled and take it from there.
"If you have a difficult job to do....Give it to a lazy man....He'll find the easy way to do it."