Not able to run Random Forest

Unfortunately, the answer is probably to get a bigger machine. Or rent one from AWS/Google/Azure etc. One thing for sure - RStudio Cloud is not a good fit for you since, as I've said, it's limited to 1Gb of RAM.

There are some more suggestions here: