This issue usually comes for Windows when you have large files to be cloned, and Windows have some size restrictions while clonning, So you can run below Global command to allow it clone longpath files
git config --global core.longpaths true