Brake ground

The sockets ground through the metal of the tail light housing to the body

You can use alligator clips to add a ground and see if the issue doesn't come back