Stdout maxBuffer exceeded in Ghost Update

[13:49:58] → verbose 24.382371605 Copying "/home/username/.cache/yarn/v6/npm-date-fns-2.28.0-9570d656f5fc13143e50c975a3b6bbeb46cd08b2-integrity/node_modules/date-fns/locale/sl/_lib/formatLong/index.js" to "/var/www/domaincom/versions/4.41.3/node_modules/date-fns/locale/sl/_lib/formatLong/index.js".
[13:50:02] Installing dependencies [failed]
[13:50:02] → stdout maxBuffer exceeded
[13:50:02] Downloading and updating Ghost to v4.41.3 [failed]
[13:50:02] → stdout maxBuffer exceeded
A ProcessError occurred.

Message: stdout maxBuffer exceeded

Debug Information:
    OS: Ubuntu, v20.04.4 LTS
    Node Version: v16.14.2
    Ghost Version: 4.40.0
    Ghost-CLI Version: 1.19.2
    Environment: production
    Command: 'ghost update -V'

1 GB RAM was not enough.