Is it possible to overcome memory overflow in UE5 when there are nodes with Python code in the blueprint?

If I add a node with Python code (such as Execute Python (Command, Script,Command Edvanced)), even if I add an empty string, then the RAM gradually fills up, the faster the more such nodes.

I used the garbage collector both inside the Python code and in the nodes in the blueprint. They don’t help.

These nodes are placed in the object of the class editor unit actor, which is placed on the stage. And its blueprint is launched along with the game of the project. I know that these nodes are not designed to run during the game, but still I hope that the problem I am facing is solvable and not a consequence of the described limitation.

The code itself works very well and solves my problem, only over time the RAM gets full and Unreal just freezes. Can you help me?)