Holy cow that's some corrosion!
At this point I would start checking all the grounds everywhere, especially after seeing the BCM. The car was never in a flood was it? You may also want to try swapping out the headlight switch. I had to do that after having a similar problem like yours. This was after I replaced the Hazard switch a few times through the years. It's been years since I had a problem with the lights now.