IRCv3 Tag Logic?

I haven’t noticed any “malformed messages” from Twitch… How are you reading from the connection and parsing the message? A message might not fit in your buffer, especially if your buffer is small but otherwise as well, so you should be listening until you hit \r\n before parsing the IRC message.