The quality of electrical connections on cheap trailer lights is crap, I've had loads of problems over the years.
To get a definitive answer, if you have a multimeter and spare piece of wire measure the voltage between the earth connection in the trailer light fitting and the battery -ve...