A. Ensure that your device has enough storage space available. Go to Settings > General > iPhone Storage and check for available space. Delete unnecessary apps or files if needed.
B. Close other apps running in the background to free up memory. Double-tap the Home button (or swipe up from the bottom on newer models) and swipe up on apps to close them.