The remote end hung up unexpectedly, early EOF, index-pack failed

If anyone else is facing this issue, they can follow the troubleshooting guide in Tutor docs. You should set the max-parallelism = 1 so that edx-platform is not sharing the network with another build step.