Added exception handler for memory size checks that return None for cellsize.