I had the same problem a few months ago and it ending up being a loose connection in the head light. I took the headlight off and inspected all the wires and that´s when I noticed a few connections were loose or not together at all. Once it was wired back together I had no issues. Hope this will help you