MDL-41827 tool_generator: Adding a file size limit