I keep getting the following error in R when trying to export a query as an .xlsx file on the server

This is a good example where a screenshot isn't a good idea. That's a lot of text you're asking people to type.

Googling a bit suggests this kind of error is sometimes associated with writing large excel files.

Some discussion below, http://r.789695.n4.nabble.com/output-td4727325.html

Asking this kind of question with something closer to a reprex (FAQ: What's a reproducible example (`reprex`) and how do I do one? -- specifically more context about the table you're saving and the code you used) will likely make it easier for folks to help.