Jobs sometimes fail because of artifacts cannot be uploaded

It seems some jobs are failing because some artifacts cannot be uploaded due to a 500 error from the coordinator, e.g. https://gitlab.com/gitlab-org/gitlab-ce/-/jobs/194916476:

Running after script...
$ date
Thu Apr 11 13:02:58 UTC 2019
Not uploading cache debian-stretch-ruby-2.5.3-node-10.x-3 due to policy
Uploading artifacts...
coverage/: found 5 matching files                  
knapsack/: found 4 matching files                  
rspec_flaky/: found 4 matching files               
rspec_profiling/: found 2 matching files           
WARNING: tmp/capybara/: no matching files          
Uploading artifacts to coordinator... ok            id=194916476 responseStatus=201 Created token=7cvgypz1
Uploading artifacts...
junit_rspec.xml: found 1 matching files            
WARNING: Uploading artifacts to coordinator... failed  id=194916476 responseStatus=500 Internal Server Error status=500 Internal Server Error token=7cvgypz1
WARNING: Retrying...                               
WARNING: Uploading artifacts to coordinator... failed  id=194916476 responseStatus=500 Internal Server Error status=500 Internal Server Error token=7cvgypz1
WARNING: Retrying...                               
WARNING: Uploading artifacts to coordinator... failed  id=194916476 responseStatus=500 Internal Server Error status=500 Internal Server Error token=7cvgypz1
FATAL: invalid argument                            
ERROR: Job failed: exit code 1

Compared to a job where this artifact is uploaded successfully e.g. https://gitlab.com/gitlab-org/gitlab-ce/-/jobs/194916483:

Running after script...
$ date
Thu Apr 11 12:58:52 UTC 2019
Not uploading cache debian-stretch-ruby-2.5.3-node-10.x-3 due to policy
Uploading artifacts...
coverage/: found 5 matching files                  
knapsack/: found 4 matching files                  
rspec_flaky/: found 4 matching files               
rspec_profiling/: found 2 matching files           
WARNING: tmp/capybara/: no matching files          
Uploading artifacts to coordinator... ok            id=194916483 responseStatus=201 Created token=faiwpUAs
Uploading artifacts...
junit_rspec.xml: found 1 matching files            
Uploading artifacts to coordinator... ok            id=194916483 responseStatus=201 Created token=faiwpUAs
Job succeeded
Edited by Rémy Coutable