Brake light ground issue

They simply crimped the bulb socket into a pot metal housing. If its loose enough to turn, looses ground path, you're probably getting some moisture inside there too. Just not a good way to refit/tighten up their crimp. A screw though the crimp stops the socket from turning but screw would need to be very small. If metal rests against the bulbs glass globe it could crack again and again. Vibration is the cause.
Solder a ground wire to exterior of bulb socket. Silicone seal the socket to housing.