I had the same problem. What worked for me was freeing up at least 50GB of storage (51 Gb in my case). After freeing up space try reinstalling.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: