Fix CustomData size limit

The spec says 65535 is the max allowed size