Validate log record max size before writing to log