Do you have an H.I.D. Kit, cause I have HID'S in my fog lights and the same thing was happening to both, one was the balast and eventually the bulb went from flickering, and the other was a resister, it was weathered on the male connectors. Hope that helps for what its worth.
Danny
2005 645 conv.