When a header in a report overflowes in the next page an infinite loop starts and infinite temporary files are created.
Perhaps "net.sf.jasperreports.engine.JRRuntimeException: Infinite loop creating new page due to page header overflow." is not handled?
Thanks for catching it! The defect is already logged in the internal tracker.