Xcode v.13.4.1 giving "Not enough disk space" error when attempting to download from AppStore

Attempting to download the latest version of Xcode on my 2018 MacBook Air running macOS 13.0 , but it keeps giving me the "Not enough disk space" error, which makes no sense considering there's nearly 40GB of free space on my hard drive. I've attempted restarting the system, but that hasn't helped. Does anyone know if there is a way to fix this?

Xcode v.13.4.1 giving "Not enough disk space" error when attempting to download from AppStore
 
 
Q