Welcome to AC
Does it happen randomly or when performing certain tasks? Try rebooting into recovery mode (with the phone off, hold volume up + home + power for a few seconds) and wiping the cache partition. Use the volume buttons to navigate the screen and the power button to select the options.