A. Ensure that your device has enough storage space. Go to Settings > General > iPhone Storage and delete unnecessary apps or files.
B. Close other apps running in the background to free up resources. Double-tap the home button and swipe up on apps to close them.