The flickering effect you see in headlights is really the LED bulbs turning on and off rapidly, which can usually be fixed using a load resistor or LED decoder. For an easy guide on how to troubleshoot this, we wrote an article on how to fix flickering LED headlights.