Please try clearing your mod cache:
hugo mod clean --all
If that doesn’t work, please delete the Hugo cache directory. Obtain the path to the Hugo cache directory with:
hugo config | grep cachedir
Please let us know what worked.
It may be advantageous to set your HUGO_CACHEDIR environment variable to something other than the system temporary directory, but make sure that it is outside of your project path. Related comments: