Very large writes to CI pipelines fail

I have a repo with a pipeline that generates very large XML files containing unit test results. We have always cat’ed this file to the terminal within the pipeline, but recently we improved test coverage and the results file increased in size, and we started seeing errors like this (using echo):

echo: write error: Resource temporarily unavailable

and this (using cat):

seecat: write error: Resource temporarily unavailable

Is this a known problem? I notice that there are similar bug reports on issue trackers for Travis and similar systems…

Thanks,

Sarah