I have string of length
StringTools:-Length(str);
1073105
When doing
p:=StringTools:-LengthSplit(str,100):
Maple gives

From help:
LengthSplit
split a string into equal length pieces
This is all done in .mpl file actually, not interactive, but I made the above worksheet to show the problem. The string is read from a file by a program and it wants to split it to 100 length smaller strings.
I have lots of RAM. 128 GB. So why does Maple crash and is there a workaround this?
This string was generated by another software.
I have attached the above example below as worksheet. Maple 2022.1 on windows 10.
Here is a simpler way to generate this problem
restart;
str:=StringTools:-Random(1073104,'upper'):
str[1..10];
StringTools:-Length(str);
p:=StringTools:-LengthSplit(str,100):

Using trial and error, the crash happens when the length reaches 1073101. At 1073100 there was no crash.
