I had the same issue, found it was the battery. Check with my friends S5 phone battery which was heavier than my phone battery & it was good. When I put my battery back it was restarting again and again. So in my case it was the battery issue just 6 month old.