sfdx force:org:create fails with Error: socket hang up

Hi,

We've been using the sfdx-cicd-template for quite some time without any issues. However, recently we started experiencing this weird error, which manifests like once in every three or four pipelines:

sfdx force:org:create --targetdevhubusername DEVHUB --wait 10 --durationdays 30 --definitionfile config/project-scratch-def.json orgName=scratch/develop --json

Error: socket hang up
    at connResetException (internal/errors.js:628:14)
    at TLSSocket.socketOnEnd (_http_client.js:499:23)
    at TLSSocket.emit (events.js:412:35)
    at endReadableNT (internal/streams/readable.js:1317:12)
    at processTicksAndRejections (internal/process/task_queues.js:82:21) {
  code: 'ECONNRESET'
}
{
  "status": 1,
  "name": "Error",
  "message": "socket hang up",
  "exitCode": 1,
  "commandName": "OrgCreateCommand",
  "stack": "Error: socket hang up\n at connResetException (internal/errors.js:628:14)\n at TLSSocket.socketOnEnd (_http_client.js:499:23)\n at TLSSocket.emit (events.js:412:35)\n at endReadableNT (internal/streams/readable.js:1317:12)\n at processTicksAndRejections (internal/process/task_queues.js:82:21)\nOuter stack:\n at Function.wrap (/root/.local/share/sfdx/client/7.116.2-7d0f61b/node_modules/salesforce-alm/node_modules/@salesforce/command/node_modules/@salesforce/core/lib/sfdxError.js:171:27)\n at OrgCreateCommand.catch (/root/.local/share/sfdx/client/7.116.2-7d0f61b/node_modules/salesforce-alm/node_modules/@salesforce/command/lib/sfdxCommand.js:248:67)\n at processTicksAndRejections (internal/process/task_queues.js:95:5)\n at async OrgCreateCommand._run (/root/.local/share/sfdx/client/7.116.2-7d0f61b/node_modules/salesforce-alm/node_modules/@salesforce/command/lib/sfdxCommand.js:85:13)\n at async Config.runCommand (/root/.local/share/sfdx/client/7.116.2-7d0f61b/node_modules/@oclif/config/lib/config.js:173:24)\n at async SfdxMain.run (/root/.local/share/sfdx/client/7.116.2-7d0f61b/node_modules/@oclif/command/lib/main.js:27:9)\n at async SfdxMain._run (/root/.local/share/sfdx/client/7.116.2-7d0f61b/node_modules/@oclif/command/lib/command.js:43:20)\n at async Object.run (/root/.local/share/sfdx/client/7.116.2-7d0f61b/dist/cli.js:162:47)",
  "warnings": []
}

I'd be grateful for any hints as to how we could tackle this.

Thanks!