I tried to clone multiple github repos (e.g Node.js repo) via HTTPS using Xubuntu and Lubuntu VMs as guests on Windows 10 to no avail since it fails with a data stream error:
fatal: pack has bad object at offset 610504: inflate returned -3
fatal: index-pack failed
The error changes across multiple runs of the same command. However, using SSH works fine. The error seems to be related to zlib (source: https://superuser.com/questions/1067443/git-pack-has-bad-object-when-pushing-to-remote).
Also, I don't know if it may be related to using the "default" network mode of VirtualHost (NAT).
I tried to clone said repos on the host machine and it worked fine both through HTTPS and SSH.
I used Xubuntu 18.04 and git 2.27. Virtual Box version is 6.1.10.