Is there a limit to how much text I can store?
Yes, the text a dots must be less than 100,000 characters.
This limit is mainly because iOS has trouble displaying large amounts of text. There are also cases on macOS where your language and its script can cause performance problems when there's a lot of it.
As a general rule, if you have that much text, you'll have a much better experience with a file-based text editor.