Sorry, II misunderstood your answer.
You have a short is the power supply to the rear lights. The obvious suspect would be something in the rear that you were just messing with. Check your trailer hookup and make sure it didn't get chaafed or shorted to the frame somewhere. If you can't see anything. try to isolate it to the rear by unplugging the many harness for the rear lights and see if it blows then. I suspect it will be in the rear somewhere.