You could try adding swap: https://docs.getodk.org/central-install-digital-ocean/#adding-swap
But I think you'll need to setup monitoring to fully diagnose: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/monitoring_ec2.html
Here's a possibly related post:
Apologies I can't be of more help.
1 Like