Error writing blob: ... Received unexpected HTTP status: 504 Gateway Time-out

I don’t believe Nexus would emit a 504, you should check proxy servers or reverse proxies, these should not have a timeout configured.