An hour into my ride on Sunday I looked down and saw my check engine light on. I scrolled through and checked the code and it was the Low Beam Lamp short circuit code. I've had that happen to me before when my bulb was getting ready to go out so I didn't think anything of it. I stopped for coffee and when I got back on the bike I started it and the check engine light was on again and I checked and the light wasn't on at all. I fidgeted with the plug on the back of the headlight and nothing. Then I noticed the high beam light on the dash was flashing. I scrolled through the codes again and this time I had 4 codes, one for the high beam, one for the low, one for the right fog lamp and one for the left and all of the lights were off and wouldn't turn on. I did quick research on fuses and checked the fuses and didn't see any blown. I cut my ride short and took a more direct route home than I had planned. I got home did a little research and decided to go out and troubleshoot. I started the bike and checked the voltage and it was at 14.5 so that wasn't it. I pulled the seat off and was able to wiggle the negative battery cable. I took the VCM off and tightened both terminals, started the bike and all the lights came on and no more codes. Fast forward to today… I rode to work this morning, no issues. Rode home, no issues. I then ran a short errand and no problem... until I left where I went and all of the same indications as before. This is baffling. Any idea what it may be?