Unable to Install Realm using Cocoapods

I’ve been using Realm in my app for over 2 years and today when I ran pod install I keep getting the following error:

[!] Error installing Realm
[!] /usr/bin/git -C /var/folders/tx/qrwm6x9d5m1gljccyw9mh9980000gn/T/d20200925-15283-1ur7ixx submodule update --init --recursive

Submodule path 'Realm/ObjectStore': checked out '464f9644bc79869182138cd2d76905a7a6a82cb7'
Submodule 'Realm/ObjectStore' (https://github.com/realm/realm-object-store.git) registered for path 'Realm/ObjectStore'
Cloning into '/private/var/folders/tx/qrwm6x9d5m1gljccyw9mh9980000gn/T/d20200925-15283-1ur7ixx/Realm/ObjectStore'...
Submodule 'external/catch' (https://github.com/catchorg/Catch2) registered for path 'Realm/ObjectStore/external/catch'
Cloning into '/private/var/folders/tx/qrwm6x9d5m1gljccyw9mh9980000gn/T/d20200925-15283-1ur7ixx/Realm/ObjectStore/external/catch'...
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
fatal: the remote end hung up unexpectedly
fatal: clone of 'https://github.com/catchorg/Catch2' into submodule path '/private/var/folders/tx/qrwm6x9d5m1gljccyw9mh9980000gn/T/d20200925-15283-1ur7ixx/Realm/ObjectStore/external/catch' failed
Failed to clone 'external/catch'. Retry scheduled
Cloning into '/private/var/folders/tx/qrwm6x9d5m1gljccyw9mh9980000gn/T/d20200925-15283-1ur7ixx/Realm/ObjectStore/external/catch'...
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
fatal: the remote end hung up unexpectedly
fatal: clone of 'https://github.com/catchorg/Catch2' into submodule path '/private/var/folders/tx/qrwm6x9d5m1gljccyw9mh9980000gn/T/d20200925-15283-1ur7ixx/Realm/ObjectStore/external/catch' failed
Failed to clone 'external/catch' a second time, aborting
Failed to recurse into submodule path 'Realm/ObjectStore'

I’m unsure of how to fix this I’ve tried running pod repo update but no luck any help would be appreciated.