On low memory condition the ContentManager closes and reopens the database, and discards all precompiled query statements. This is necessary as they point into the database. However, these query statements may still be referenced by index from model classes which can then lead to unresponsive queries.
A more stable solution should be implemented.
Maybe recompile the query statements instead of discarding them?