Xcodebuild, xcframework error: Too many levels of symbolic links

I am trying to setup a Virtual Machine environment for our CI/CD and I get the following error when I try to clone the source packages of the xcodebuild command in the disk mounted by the host in the vm to use it as a cache:

Error Domain=NSPOSIXErrorDomain Code=62 "Too many levels of symbolic links"

This error only shows up when the path of the option "clonedSourcePackagesDirPath" is set to the disk mounted by the host. On a directory inside the vm itself it works fine.

We get the error with the macos target of the Lottie.xcframework since it's the only one to use symlink. We check and there is no cycle to be found.

Anyone has any idea of how to solve this issue ? Or an explanation of what's going on there ?