A. Ensure that your device has enough storage space available. Go to Settings > General > iPhone Storage to check available space. If storage is low, delete unnecessary apps or files.
B. Try downloading files over a stable Wi-Fi connection instead of cellular data to reduce the chance of freezing.