Ok, I’m about to show my ignorance and hopefully someone will teach me something. I have no doubt that you experienced those symptoms and that the symptoms resolved once the battery replaced.
I am, however, struggling to understand HOW the battery replacement resolved those symptoms.