This is an Android phone which means you have the possibility to Factory Reset it to its initial state when you have issues. To do this, go to Settings > Backup and Reset and press on Reset phone button. If this is a system error, then it should be fixed if you use this method. If you keep receiving errors, you might need to send the phone to warranty service or visit your local phone service shop.