Before you consider something major like a tipm replacement, and if you don’t find anything in the trailer connector, check over the wiring harnesses that carry the wheel speed sensor wires.
My ‘13 gas truck had a speed sensor wire rub out on the right front frame. The abs, service 4wd, and...