Path error ("/lix/store/....") when running "nix-store --verify"

I’m trying to run this command:

sudo nix-store --verify --check-contents --repair

And i get this output:

reading the Nix store...
checking path existence...
error: path '/lix/store/grfka3gb49i4gg11dacfh5l7wb806pvc-contravariant-1.5.5.drv' is not in the Nix store

The command runs without problem on my second computer with the same config, so i suppose that’s not the problem at least.

NixOS 25.05 x86_64
nix (Nix) 2.28.5
Linux 6.12.58