Git commit fails inside shared folder (stale file handle)

when running git commit in shared folder I get:

error: unable to open loose object f1...: Stale file handle
error: unable to open loose object f1...: Stale file handle
fatal: cannot update ref 'refs/heads/main': trying to write ref 'refs/heads/main' with nonexistent object f1...

virtiofsd command virtiofsd --socket-path virtio-fs.sock --tag pwd --shared-dir . --inode-file-handles=never

virtiofsd commit 1e1c5dee

cloud-hypervisor v0.46

host fs is btrfs on linux 6.12.30 nixos 25.05

same error with crosvm and qemu

Edited by Timon Schelling