For years, my team uses the third-party tool `xcodes`... `brew install xcodes` or use the [GUI](https://www.xcodes.app/).
It allows you to easily install and maintain several versions of Xcode (beta / RC versions).
And, more importantly, uses aria2 for HTTP download, which has resumability.