According to Hopkins installation manual, the E2 error indicates that there is a blue wire short somewhere in along the trailer wiring or a possible defective magnet in the brake assemblies.
First, you will need to check the blue wiring from the brake controller to the the trailer electric brakes. Check your electrical connection between the your vehicle and your trailer. The plug might not be making a secure connecting, causing an intermediate signal.
There could be an electrical short... view full answer...