It may seem unrelated, but I'd encourage you to get rid of the battery experiment you got going on. I could be wrong and there's a different root cause, but there's more complexity in the battery and electrical system than meets the eye with potential resistance / impedances of the system. There's transient conditions that affect signals and the canbus comms which might be the source of your gremlins.