Sounds like a failing headlight switch to me.