UE5 for M1 Apple Silicon

Is 170GB the final size the folder takes? When I tried to build the engine on my M1pro laptop, it consumed the whole usable disk space of my disk, which was around 300GB, and the build process failed due to laking of free disk space. How much disk space should I prepare for building?