Thank you for your willingness to help. Today I put together some general standalone code to try to reproduce the error. I work with a very niche dataset, so I changed it to something more general since I can’t post my data. Unfortunately, this standalone code apparently works. So tomorrow I’ll try to get it (not) running again and see about stripping down the original code so that it still causes the error.