Deployment fails with "Got unexpected HTTP status when uploading log: 400"

I’m trying to deploy a release, but I’m getting an immediate failure just after the update-fetch [Download_Enter] -> update-status-report [none] transition. The error reported is 400 error uploading logs: (request_id: ): uploading logs failed, bad status 400 server error message: no messages: invalid deployment log"

The same deployment also gets installed on other machine types, and these are fine.

Any clue on how I could workaround that problem ?