Check your wiring connections. It sounds like you are losing power somewhere in and out. If you put HID lights on and those are flickering, then you might need the power relay that connects them directly to the battery because they are not getting enough power.