Improve error message when running out of Java CPU memory