Is there a limit to how much text I can store?

Yes, the text for all dots must be less than 1 million characters. And that's a feature, because if you have that much text, you'll have a much better experience with a file-based text editor.

If you exceed this limit, you'll see an error message and iCloud will fail to sync. To remedy the situation, get rid of some text.