JVM is frequently crashing with a 0xc0000005 exception