I have had this before in Go when I had an older version of Go installed but the dependency needed a newer version. It then tries to download a temporary tool chain of a new Go version to compile the dependency (or whatever it is doing). For me, that failed. What did work was upgrading Go to the latest version.
You can check what your installed Go version is by