I use good quality connectors and the proper crimping tool
and have never had that happen.
Avoid the stick-wire-in-the-slot-and-fold-connector-shut type connectors. Those are good temporarily if you are connecting trailer lights
temporarily, but I have seen wires work loose.
look for a loose wire/connection.-Bob