I had an 89 3500 that would do that, I ended up taking the gauge cluster out and cleaned the contacts on the cluster and in the dash and it still didnt fix it....
Solution was finally found because it was a bad ground in the headlight harness up front