I tried to reproduce the problem on the "clean" portable version in another directory - the problem is not reproduced.
Then, I began to copy configuration files, the problem is in them.
By the way, the portable version still saves data somewhere, even if I delete SessionConfig and replace the Config from the distribution, it reproduces the error.
In the end, I continue to experiment with the program.
Update:
I found the problem.
If I ran the program from the folder, then everything worked. If I ran the program with a shortcut from the quick access folder, the error was repeated. I deleted the "bad" shortcut
and placed a new shortcut in the folder, after that everything works. Thank you for your attention.