I have also been having this problem over and over for 3 years. On long trips we opt to drive the 2007 rather than the 2017 2500 HD due to the continuous beep-beep-beep occuring with the "check trailer wiring" followed by "trailer connected".
I have pried the prongs out with brief results. dozens of times
Replaced both ends 3 times with Pollack plugs. took it to the dealer with no help, and they wont disable the warning beep which cannot be turned off by consumer. $174.00
Installed the Tekonsha Prodigy RF Wireless Trailer Brake Controller in an attempt to circumvent factory controller which proved even more troublesome as it drops signal multiple times wile on long trip. $339.00
And am now convinced the problem is in the gmc design with the socket door on truck opens downward(rather than the traditional upward) and the weight of the cord is not allowing the plug end to catch the mechanical socket door notch effectively.
Next attempt will be with a new socket replacement by Reese which utilizes the traditional design that opens upward. If this doesnt work I will do the thing I originally attempted to avoid due to cost, Replace factory system with complete aftermarket controller.
I guess $62,000 wasnt enough to spend on a truck to become eligible for a solution from GMC for a GMC errorOuty o
Rlc
2017 GMC 2500 HD, Duramax work duty