LOL. I had a problem like that with my ex, we'd have massive fights conducted 100% through text. I'd complaint to friends about how out of hand it was getting. More than one person suggested why don't you just not respond? It hadn't even occurred to me as an option. It seems like common sense but there's no obligation to respond immediately or at all to a text or any other channel when it's going down a path that's not ideal or if you'd prefer another channel or IRL to continue the discussion. Text has to be THE WORST place to attempt a serious conversation of any sort, email is about as bad, phone's a big improvement, face-to-face is where it's at ideally.
The way I see it, people will communicate with you the way you allow; if you let everyone expect that you're always available, you'll be spammed with trivialities all the time. Many people don't have the manners (for lack of better word) and self-awareness to understand their issue is trivial and not worth breaking someone's focus by forcing synchronous communication on them.