That might be related. I would try again, but with a new version of the workflow, can be a small change, just something to introduce a new state of the workflow so the system will attempt to make a new version of the copy link.
If that doesn’t help, maybe perhaps publish some of these code steps as private actions, those are still compatible with share links, but I believe it’ll help separate the code away from the main workflow and reduce the memory usage.