The cover on the truck's connector should hold the plug in place.
I ran into a no brake problem shortly into my last trip. I had all of the trailer lights but no brakes and the truck said trailer disconnected. After some research, I found out that the plug that Keystone put on my trailer was incompatible with the truck's (Ford)plug. I also had issues with the same trailer, different truck, so I knew it was a problem with the trailer connector. I found a dealer in Hot Springs and picked up a Pollak plug, wired it onto the trailer's 7 conductor cable and it literally snaps into place. Many of the trailer manufacturers use Bargman connectors, and they don't seem to be compatible with much except another Bargman component. I would try that before replacing the trucks connector. A Pollak 7 way plug is only about $7 and it's even marked so you know which wires go where.