How do I debug this?

For low RAM VMs, you may want to try to run in 32 bit to conserve memory. I have a blog post on this, albeit with fly.io: