Run a long ground write from the battery to the tail light.

You might have a weak ground for that light.