Sounds like a voltage regulator a friend of mine had the same exact issues and that was the problem with his bike.