Thought I'd add on my experience to this thread for anyone else who may stumble across this issue.
I kept blowing brake light 10amp fuses in the passenger footwell fuse box. It actually started happening after the car was washed, initially I assumed it was due to a broken third brake light at the top of the hatch which was broken when I bought the car. I figured once I replaced it the shorts would stop.
Then I started having the problem described in this thread, the car would lock with the remote fob, but when you pressed again to unlock, the lights would flash to indicate the signal was received but the locks wouldn't unlock. I never connected the two being related, I had a broken door handle and thought maybe water was getting in when it was washed.
Anyway when googling I kept getting threads like this one that indicate a short somewhere most pointed to the trailer harness wiring.
It didn't take long though to find the problem, there is a loom that runs from the boot/trunk to the tailgate, it was badly damaged with multiple wires exposed that have melted together. If I touched the loom the tailgate lock would short out and lock/unlock.
I had to cut the wires back a fair bit to clean them up so I had to add new wire in to rejoin them. Four of the wires are a fairly small gauge, say 3mm, and a single thicker wire, say 5mm. I added the new wire in, soldered and then taped up with electrical tape. I'd suggest using liquid tape though for a better seal I just didn't have any on hand. It's a s***ty spot to have to rejoin because the wires get crushed when tailgate is raised, so try not to make your repair too thick. I resecured it with a ziptie. Not sure how long my patch will last.
View attachment 2772370
View attachment 2772371
View attachment 2772372