Mine did the same thing for a while, check the head light circuit breaker in the fuse block in the glove box, mine was loose and losing connection.