Same problem with my girlfriend's S4 phone. It keeps on restarting until it got to the system error message like what is happening on PC when not shutdown properly. Asking you to go to safe mode or restore in previous session etc.
We buy a new battery but not an original battery from samsung...