I had this issue with my 22 F350 and the 5ht wheel. After a lot of trouble shooting, taking it to the dealer for inspections and trial and error I found it was the wiring on the trailer. I could hook up to other trailers, campers and a different 5th wheel and everything was fine. l dug into the brake wiring and found shorts on the trailer, bad connections at the wire from the main harness connecting to the brakes at the drums, bad wire inside the axle from side to side.
I removed all the connectors and soldered the wires and used heat shrink over it for all the connections.
The big issue was the wires that run through the axels from the left side to the right, the wiring had rubbed through inside the axle tube causing the short. They run that wire through there with a lot of excess and it just bounces around in there rubbing the coating off. There's others that have posted the same issues, it's fairly common.
For my repair I ran new wire up and through the underbelly and dropped it down to the axle, soldered the connections up, heat shrink, added some wire loom for protection where it comes out of the underbelly to the axle. I left slack on that for the axle movement so id won't pull apart. Issues solved. Haven't had an issue since, we've put a lot of mile on it.