It turns out that the issue was that you cannot use .getChild().copy() to move things from one document to another; that method only works to copy elements within the same document. Rather, I have to use .getParagraphs()[].copy() to copy paragraphs and .getTables()[].copy() to copy tables from one document to another.
A very unhelpful and unintuitive error message, but it's sorted now.