After experiencing strange intermittent starting / charging issues I've become a firm believer in spending time inspecting ALL of the ground wire connections rather than just focusing on 12V positive power.
Anytime the problems your having with electrical don’t really make sense or they are intermittent the safe bet is to check your ground connections. Clean them and hit them with something like wd40 to help keep moisture away.