check for a out of memory condition on file loading