Catch out of memory errors produced by low-memory devices