unable to boot into Catalina by any method, progress bar keeps freezing...even in safe mode
I've had to erase my Mac hard drive after repeated kernel panics. The problem is that I can now not even perform a recovery install via any method. My 2012 macbook pro retina won't install via the regular recovery method when I boot into safe mode. I then tried a recovery via Internet. After the spinning globe, I get taken to the Mac logo screen with a progress bar that freezes 75% of the way. I finally downloaded Catalina to an external hard drive and tried to install that way. But again the same issue. When I hold down the option key, I see "Install Calatina" and then get taken to the Mac logo window with a progress bar. But again it freezes about 80% of the way.
I already took it to an authorized Apple repair center. They diagnosed it and said I needed a new battery and that software was corrupted. So at this stage, I'm wondering whether it would help if I replaced the hard drive. Perhaps the hard drive itself is fatally compromised? Does anyone know why installing Catalina via a perfectly healthy external hard drive would cause the macbook pro to vfreeze? Am I missing something? Could the motherboard or logic board be the issue? If it's software related wouldn't it be the hard drive and no other hardware at fault???
Thank you in advance for any help with this.
MacBook Pro 15″, macOS 10.15