Hello,
Check this post , something related to dev 2 GB RAM and prod 1 GB
Maybe it helps not sure though if it’s your situation but it has the same error
Thanks @AnthonyS, this seems to have been the issue. I have increased RAM to 4 GB and swap to 2 GB and not it seems to be working (at least so far it did not shut down).