This issue is happening more frequently on my T-Mobile S5 also.
Here are some details of my experience:
1. Only happens when connecting to my home wireless network (Belkin router), not work or any others
2. Happens about once every two hours
3. Happens when phone is idle and not under use
4...