I've been running a copy of PomuBot for a while now, and I just started getting constant errors in my logging channel, several times a minute:

Looking at the logs, I'm seeing a stack trace that looks like this:
Uncaught exception: MongoServerError: Plan executor error during findAndModify :: caused by :: Resulting document after update is larger than 16777216
at Connection.onMessage (/usr/home/pomubot/PomuBot/node_modules/mongoose/node_modules/mongodb/lib/cmap/connection.js:202:26)
at MessageStream.<anonymous> (/usr/home/pomubot/PomuBot/node_modules/mongoose/node_modules/mongodb/lib/cmap/connection.js:61:60)
at MessageStream.emit (node:events:513:28)
at processIncomingData (/usr/home/pomubot/PomuBot/node_modules/mongoose/node_modules/mongodb/lib/cmap/message_stream.js:124:16)
at MessageStream._write (/usr/home/pomubot/PomuBot/node_modules/mongoose/node_modules/mongodb/lib/cmap/message_stream.js:33:9)
at writeOrBuffer (node:internal/streams/writable:392:12)
at _write (node:internal/streams/writable:333:10)
at Writable.write (node:internal/streams/writable:337:10)
at Socket.ondata (node:internal/streams/readable:766:22)
at Socket.emit (node:events:513:28)
at addChunk (node:internal/streams/readable:324:12)
at readableAddChunk (node:internal/streams/readable:297:9)
at Readable.push (node:internal/streams/readable:234:10)
at TCP.onStreamRead (node:internal/stream_base_commons:190:23)
(apologies for any typos, for various reasons I had to copy this by hand)
I've been running a copy of PomuBot for a while now, and I just started getting constant errors in my logging channel, several times a minute:
Looking at the logs, I'm seeing a stack trace that looks like this:
(apologies for any typos, for various reasons I had to copy this by hand)