See #1773 (comment) for details. On a project with more than 30,000 entries, lex_stats is trying to return all the entries and running out of memory. It should only be returning an entry count, plus a count of how many entries have pictures and how many have audio, both of which would be easy to get with a simple Mongo query.