If your iPhone's battery can't keep up with what you're doing or you overwhelm its hardware, it might shut down to protect itself.
Common reasons why your iPhone keeps randomly turning off


If your iPhone's battery can't keep up with what you're doing or you overwhelm its hardware, it might shut down to protect itself.