Take a look at build/output/debug/install.log, In my case, it showed that the script was trying to connect to "localhost:3142", which is where apt-cacher-ng listens.
Given that I'm building on WSL2/Ubuntu, I had to manually start apt-cacher-ng with:
sudo /etc/init.d/apt-cacher-ng start
Once I did that, the build succeeded.