IRCv3 Tag Logic?

It parses 99% of data just fine. I have hundreds of bots online at any given time and out of those hundreds of bots parsing thousands of lines I only see this error on rare occasions. My issue is I haven’t found a good way proceed when this does occur. I’m just trying to determine a uniform way of identifying the IRC responses so I can throw away malformed responses when they don’t fit the uniform.

Wondering how other people done it.