Hello Shastri, Akash,
Welcome to microsoft Q&A, thankyou for posting your query here.
container crash could be because of resource constraint, try to increase the memory and CPU allocation for your container.
please find the related threads for increasing memory and cpu for the container
https://learn.microsoft.com/en-us/answers/questions/367506/how-to-increase-the-container-memory
Also you can use docker run command to limit your CPU and Memory
Docker run -m 3gb <your-container name>
Docker run --cpus 2 <your-container name
Docker run --cpus 2 -m 3gb <your-container name>
Hope this helps you.