KABOOM! when hitting headlights.....

Clean your bulk head connection. The load of the lights cut the main power to the ignition switch for a split second. . It will be the fusible link wire at the bulk head. They always get corroded due to the material they are made of.