All told, for this first experimental project, it will be a total of ~65,000 segments split into ~1,400 groups. Each group has from ~5 up to ~3,000 points.
Be aware that the KRC4 has some very silly memory limits -- something like 4MB in the user-program space. This sounds like you could be at risk of hitting that limit. And sadly, the KRC does not warn you about this -- it simply becomes badly unstable and begins crashing randomly.
To get around this, you will either need to "swap" point lists in and out via krl_fread/VarProxy/etc, as mentioned above, or buy the KUKA DirLoader option.