Sketches behaving differently when the SERIAL MONITOR is activie

Are you close to the Flash or SRAM limits?