This error is generally an indication that you have exceeded the memory limit of 1 GB that is currently available on rstudio.cloud.
We are able to cache compiled packages, however, I was able to build this package in a fresh project where I had not done anything else. Does it still fail for you?