Push to gitlab.com fails with zeroPaddedFilemode: contains zero-padded file modes

Customer has started to mirror some of their repos from their local gitlab (self-managed) to the new remote one (gitlab.com), but running into an issue with one of their repositories, Jquery, which returns this error:

13:close stream to gitaly-ruby: rpc error: code = Unknown desc = Gitlab::Git::CommandError: remote: error: object a98f1b7a267865bb78ef2a54ed54b67fbad6c839: zeroPaddedFilemode: contains zero-padded file modes       
remote: fatal: fsck error in packed object       
error: remote unpack failed: index-pack abnormal exit
To
 ! [remote rejected]   master -> master (unpacker error)
! [remote rejected]   3.x-stable -> 3.x-stable (unpacker error)
! [remote rejected]   secure-buildFragment -> secure-buildFragment (unpacker error)
! [remote rejected]   1.12-stable -> 1.12-stable (unpacker error)
! [remote rejected]   2.2-stable -> 2.2-stable (unpacker error)
! [remote rejected]   feature/Patch.2.2 -> feature/Patch.2.2 (unpacker error)
! [remote rejected]   mgol/test-flakiness -> mgol/test-flakiness (unpacker error)
error: failed to push some refs to &#39;[FILTERED]@gitlab.com/<customername>/3rdpartytools/jquery.git&#39;

They also tried mirroring this manually as follows:

C:\projects\jquery [master ≡]> git remote rename origin old-origin
C:\projects\jquery [master ≡]> git remote add origin https://gitlab.com/<customername>/3rdpartytools/jquery.git
C:\projects\jquery [master ≡]> git push -u origin --all
Enumerating objects: 37001, done.
Counting objects: 100% (37001/37001), done.
Delta compression using up to 4 threads
Compressing objects: 100% (9856/9856), done.
Writing objects: 100% (37001/37001), 21.80 MiB | 1.80 MiB/s, done.
Total 37001 (delta 26510), reused 36878 (delta 26419)
remote: error: object a98f1b7a267865bb78ef2a54ed54b67fbad6c839: zeroPaddedFilemode: contains zero-padded file modes
remote: fatal: fsck error in packed object
error: remote unpack failed: index-pack abnormal exit
To https://gitlab.com/<customername>/3rdpartytools/jquery.git
! [remote rejected]   master -> master (unpacker error)
error: failed to push some refs to 'https://gitlab.com/<customername>/3rdpartytools/jquery.git'
C:\projects\jquery [master ≡]>

The following are two issues where it looks like the error was reported before, but no clear indication as to the resolution without having to necessarily repair the source repo.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information