It's really common, batteries being the culprit in these bikes. Electronics with CPU/ECM's are very sensitive to voltage/amperage, sometimes it just manifests itself by the bike not starting. Sometimes it's bizarre issues you can't explain. It's not only bikes but cars & trucks just the same. I've cured many unexplained issues by just replacing the battery in 2 & 4 wheeled vehicles. Just a weak cell can drive you crazy. When it's an issue like this, the battery is the first thing I scrutinize. I've also cured these issues by replacing the primary computers with a newly flashed unit. You'd be surprised at how many problems that will fix. I drove a Jeep 4 years with a check engine light on, code just said it was a computer error. One day the keep would nit stay running when you let off the key. Local shop gave up on it. I ordered a newly flashed computer & it fixed every problem the Jeep had. So, I feel your pain man.