Hey Mojo, here are some things I'd recommend you try:
Different USB Cable
The iTunes error 9 usually occurs when the device is unplugged during the restoration process. Replace your lightning USB cable and try again.
Update iTunes
Reinstall iTunes or update it.
Different Computer
I've been through this situation before where I installed a faulty jailbreak tweak and bricked my device. I tried to install a new version of iTunes on my new computer and it successfully restored my device.
Disassemble and Reassemble
Disassemble and reassemble the device. Maybe you missed something. Follow this guide on battery replacement for instructions.
Different Battery
Purchase a different battery and try it with that. I doubt there is an issue with the battery because your device boots up.
Logic Board Damaged
Your logic board might have a damaged battery connector which is causing this bootloop. Here is the guide for replacing this. You can replace the battery connector itself on the logic board, but that would require soldering.
-Let me know how it goes.