check all your fuses, and the holders
{nice clean+tight}
if fuse looks iffy replace it clean Hi-lo switch contacts
on handlebar, then check connections to
headlight,{behind headlight } and to the start/run/lights, relay next to battery
Does tailight go out too?
Hope it helps
Bruce