EC2-RStudio-Server AMI by Relevance Lab on AWS EC2 instance stopping on its own.

I deployed a EC2-RStudio-Server AMI by Relevance LAB and the EC2 instance keeps stopping on its own. I can't find a reason for it stopping. Has anyone encountered this problem? Have any suggestions? I have been troubleshooting this on AWS and tried to reach out to Relevance LAB contact email but not finding a solution for the EC2 instance to run for a number of hours and then stopping. I have created a autoscaling group and launch template to spin up a new instance using the AMI but keep losing all user accounts... on linux server.