Sometimes, within the pixi enviroment, multiple torch includes can clog the build. In this case:

1rm -rf .pixi/envs/$ENVNAME/include/torch/csrc/api/include/

Probably something to be fixed in the upstream build system..