I would say you have a short in your trailer wiring harnes and the accessory wire is activating the brakes.