If the monitor is left open while lots is printing, Arduino IDE needs to be force-quit. This is almost certainly a memory leak or some other kind of memory management mistake that needs to be fixed.