The case was opened to support last year.
After investigation, they confirmed that RA don't support upload of a directory as an artifact. This was the source of this error.
Solution was to zip the folder, then upload the zip as the artifact.
Confusion on this was due to the facts that:
- the error message isn't explicit at all
- the upload of a directory as an artifact worked well from the RA web portal