Print a useful error message when MemoryError is raised