When trying to edit a form (granted it has a lot of fields, and many entries), I got the following error:
Too many changes applied before saving document. Please save changes in smaller batches using Document.saveAndClose(), then reopen the document with Document.openById().