I will look into solutions on that thread, thanks.
Though FWIW, it seems like the consensus is that it is a problem with memory:
For instance this project that runs a simple Stan example stopped working when the memory restrictions went into place: https://rstudio.cloud/project/56157