Usually, an agent has a document filter criteria that is causing a temporary full text index to be created.
Simplify the filtering criteria or full text index the database to take the load off your server.
You can work around the limit of 5000 documents by adding (as of Notes 6) this:
TEMP_INDEX_MAX_DOC=<
number>