Hi Diya,
According to the Bee Stack documentation, it is important to ensure your VM has at least 8 GB of RAM configured. I'm not sure how the application can be optimized to meet that minimum requirement, but another option would be to use a cloud VM or try reserving one that meets the specification on TechZone.
Bee Stack - https://github.com/i-am-bee/bee-stack/tree/main
IBM Cloud - https://cloud.ibm.com/
Tech Zone - https://techzone.ibm.com/