Apex heap size too large (when querying less than 1500 records) in a table

I think the aggregate models are pulling through 9 records (see screenshot to make sure i understand you correctly). I don’t know if it’s worth mentioning, but the basic model orders by two seperate fields, could this be causing problems?