Document size to large for MongoDB

I am trying to get familiar with atomate2 and was running the phonon workflow for a 20 atom cell with a 3x3x2 supercell. The last step ‘generate_frequencies_eigenvectors’ fizzled with the stackstrace posted below. The problem seems to be the mongodb limit of 16MB. However I thought this was circumvented by setting up the GridFSURIStore. Is there any way to solve this issue?
thank you very much,
Jonathan

JOB_STORE:
docs_store:
type: MongoURIStore
uri: mongodb+srv://jschmidt2:[email protected]/fireworks?retryWrites=true&w=majority
collection_name: outputs
additional_stores:
data:
type: GridFSURIStore
uri: mongodb+srv://jschmidt2:[email protected]/fireworks?retryWrites=true&w=majority
collection_name: outputs_blobs

Stacktrace:
“_exception”: {
“_stacktrace”: “Traceback (most recent call last):\n File "/users/jschmidt/anaconda3/envs/fireworks/lib/python3.11/site-packages/maggma/stores/mongolike.py", line 494, in update\n self._collection.bulk_write(requests, ordered=False)\n File "/users/jschmidt/anaconda3/envs/fireworks/lib/python3.11/site-packages/pymongo/_csot.py", line 106, in csot_wrapper\n return func(self, *args, **kwargs)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File "/users/jschmidt/anaconda3/envs/fireworks/lib/python3.11/site-packages/pymongo/collection.py", line 548, in bulk_write\n bulk_api_result = blk.execute(write_concern, session)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File "/users/jschmidt/anaconda3/envs/fireworks/lib/python3.11/site-packages/pymongo/bulk.py", line 514, in execute\n return self.execute_command(generator, write_concern, session)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File "/users/jschmidt/anaconda3/envs/fireworks/lib/python3.11/site-packages/pymongo/bulk.py", line 391, in execute_command\n client._retry_with_session(self.is_retryable, retryable_bulk, s, self)\n File "/users/jschmidt/anaconda3/envs/fireworks/lib/python3.11/site-packages/pymongo/mongo_client.py", line 1360, in _retry_with_session\n return self._retry_internal(retryable, func, session, bulk)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File "/users/jschmidt/anaconda3/envs/fireworks/lib/python3.11/site-packages/pymongo/_csot.py", line 106, in csot_wrapper\n return func(self, *args, **kwargs)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File "/users/jschmidt/anaconda3/envs/fireworks/lib/python3.11/site-packages/pymongo/mongo_client.py", line 1401, in _retry_internal\n return func(session, sock_info, retryable)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File "/users/jschmidt/anaconda3/envs/fireworks/lib/python3.11/site-packages/pymongo/bulk.py", line 385, in retryable_bulk\n self._execute_command(\n File "/users/jschmidt/anaconda3/envs/fireworks/lib/python3.11/site-packages/pymongo/bulk.py", line 338, in _execute_command\n result, to_send = bwc.execute(cmd, ops, client)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File "/users/jschmidt/anaconda3/envs/fireworks/lib/python3.11/site-packages/pymongo/message.py", line 841, in execute\n result = self.write_command(cmd, request_id, msg, to_send)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File "/users/jschmidt/anaconda3/envs/fireworks/lib/python3.11/site-packages/pymongo/helpers.py", line 279, in inner\n return func(*args, **kwargs)\n ^^^^^^^^^^^^^^^^^^^^^\n File "/users/jschmidt/anaconda3/envs/fireworks/lib/python3.11/site-packages/pymongo/message.py", line 920, in write_command\n reply = self.sock_info.write_command(request_id, msg, self.codec)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File "/users/jschmidt/anaconda3/envs/fireworks/lib/python3.11/site-packages/pymongo/pool.py", line 969, in write_command\n helpers._check_command_response(result, self.max_wire_version)\n File "/users/jschmidt/anaconda3/envs/fireworks/lib/python3.11/site-packages/pymongo/helpers.py", line 194, in _check_command_response\n raise OperationFailure(errmsg, code, response, max_wire_version)\npymongo.errors.OperationFailure: BSONObj size: 17211573 (0x106A0B5) is invalid. Size must be between 0 and 16793600(16MB) First element: q: { uuid: "90370d8c-9822-46c5-ac5a-90f606bba2df", index: 1 }, full error: {‘ok’: 0.0, ‘errmsg’: ‘BSONObj size: 17211573 (0x106A0B5) is invalid. Size must be between 0 and 16793600(16MB) First element: q: { uuid: "90370d8c-9822-46c5-ac5a-90f606bba2df", index: 1 }’, ‘code’: 10334, ‘codeName’: ‘BSONObjectTooLarge’, ‘$clusterTime’: {‘clusterTime’: Timestamp(1690548860, 30), ‘signature’: {‘hash’: b’\x1f\xd1u\xbe\x88]\xb4\xf5\xc6\xd9\xc7`\x19\xc4\xeb\xf1\xec\x16\x1d\xa5’, ‘keyId’: 7222757166363443201}}, ‘operationTime’: Timestamp(1690548860, 24)}\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File "/users/jschmidt/anaconda3/envs/fireworks/lib/python3.11/site-packages/fireworks/core/rocket.py", line 261, in run\n m_action = t.run_task(my_spec)\n ^^^^^^^^^^^^^^^^^^^\n File "/users/jschmidt/anaconda3/envs/fireworks/lib/python3.11/site-packages/jobflow/managers/fireworks.py", line 160, in run_task\n response = job.run(store=store)\n ^^^^^^^^^^^^^^^^^^^^\n File "/users/jschmidt/anaconda3/envs/fireworks/lib/python3.11/site-packages/jobflow/core/job.py", line 607, in run\n store.update(data, key=["uuid", "index"], save=save)\n File "/users/jschmidt/anaconda3/envs/fireworks/lib/python3.11/site-packages/jobflow/core/store.py", line 328, in update\n self.docs_store.update(dict_docs, key=key)\n File "/users/jschmidt/anaconda3/envs/fireworks/lib/python3.11/site-packages/maggma/stores/mongolike.py", line 496, in update\n if self.safe_update:\n ^^^^^^^^^^^^^^^^\nAttributeError: ‘MongoURIStore’ object has no attribute ‘safe_update’\n”,
“_details”: null
}

problem got solved here BUG:Phonon workflow: Document size too large for MongoDB · Issue #461 · materialsproject/atomate2 · GitHub