Have you tried to fully charge your battery with an external charger, then with the fully charged battery re-flash your phone? If not, try that.