When you factory reset it, did it reboot before you installed your apps?
If it reboots after you reinstall your apps, do another reset, then install the apps one by one until you can narrow down the app that is causing problems.
Are there any system updates for the m8? Settings, About, Software Updates