okay try diffent computers and orginal usb cables, if not try 3utools for windows and restore. the software will tell you whats the issue if there is any with the restore process. thank you very much sir, have a awesome day. papa blesz
This is what happens when you buy cheap battery replacements as it doesn't have the little patch at the battery connector to make it tight. my advice is taking the board out and find schematic to identify the power management ic on your board, or if it gets hot at any spot try to fell it. This means the component is dameged. at this point i would do it myself if i have knowledge or let a mlg pro do et. or just get a good battery.
check if it does the same with another charger, or just test it with usb cable im sure you have one around. if it keeps doing the same thing is your charging port the problem. i would also recommend doing a backup of all your data and formating the phone then restore data for last tip. hope your phone is not the problem.