Maybe an oversimplification but check your connections. My K5 did this and I finally figured the fuse connector on battery was not making a good connection! Battery was not charging properly and engine would die when lights were turned on. Worth checking any connections that you have touched lately and make sure all are tight.

Glenn

1974 CT90 K5
2012 Honda Silver Wing
2005 Honda Gold Wing 30th Anniversary Edition

American Legion Riders Post 12
 Wickenburg, AZ

BZMF #091, English Chapter

" Keep brotherhood till die "