It's been my experience that most light problems are caused by bad grounds. In many cases it is the connection between the light housing and the body. Also between the body and the frame. Any amount of rust between the any of the contact areas can cause an intermittent problem.
Fred