%a = %a $hget(TwitchChannelUsers,%i).item

There is a limit to the length of lines and variables in mIRC and you're hitting that limit here by looping too many times. Instead of adding these values to a single variable, add them to a new hash table and change the rest of the script accordingly.