Check for valid TLV length