i had the bed off my 2016, when it was new
Now i wish that i had sorted out the wires just a bit better, but the body shop guys were working on it
I seem to remember from some ones post quite some time ago, that, on the frame, behind the drives rear wheel, the wiring tape gets bulkier, like some wires might be hidden there.
Look at the area near the rear spring, there is something that looks like a Yellow Wire Tie, notice how fat the tape is
Also right in that area, there should be a connection that leads to to the Tailgate wiring & one other connection, right behind the license Plate, that also goes to the tailgate wiring