A memory error will occur when predicting for models that use the same variable as a fixed effect and unstructured random effect in the model (e.g., a linear year trend and a random, unstructured effect of year). This occurs for all spOccupancy model types. This is currently fixed on the development version for two model types (svcTMsPGOcc and stMsPGOcc), and I will fix this for additional model types within the next few weeks. I will update this when all model types are fixed on GitHub, and then eventually fixed on the next CRAN version. Thanks to Liam Kendall for making me aware of this problem.