I've also faced this issue while doing aggregation. It turns out MongoDB aggregation has size limit of 16 mebibyte(16.7 MB) for every document in result or the cursor returns. Here is the docs which explains it. So closely examine you pipeline whether you are fetching a big documents or lookup from another collection. Hope this will help you)
Peace.