I think I figured out what was causing my error.

I was saving the global emote list AND subscriber emote list into the emotes.txt file (29,000+ emotes). That line is HUGE. When I only saved the global list, it wasn't an issue.

I guess I should split them into two, or more variables or something? Hrmm.