Are you using the Audit Log functionality of ACS AEM Commons? In that case you should raise a ticket there.
It seems that the query you are doing is not covered by any index, and to preserve the performance of the instance, the query is terminated after 300k nodes have been traversed.