As a suggestion, you may want to fill in your information box so we don't need to ask questions such as:
what year truck, 2500 or 3500, 2 or 4 wheel drive, etc.
Maybe you have a sensor gone bad?? If it was normal stopping and not quick stopping. I only have problems when I stop hard and hit bumbps. Some members have had problems in snow and ice (similar to your dirt problem), You may want to do a search on this subject and see what other members have suggested in the past.
George