Moto G phone continuously shows dialogs saying "Unfortunately, SomeApp has stopped"
Flashing the phone should solve the issue if it is not hardware related(damaged eMMC). The issue may occur when phone is infected by malwares. 

This guide on XDA Developers may help you out.