I found out that the crash, with the reason described at the beginning, occurs when equipping the sword from Fauxar (L#ASSW1.itm), which I added to the inventory using the console command specified earlier.
Perhaps this is due to the visual effect of the sword.
-----
In the NearInfinity editor (github.com/Argent77/NearInfinity/releases), the sword "L#ASSW1.itm" in the "Edit" tab, in the "Equipped appearance" value field, the value "S0" is set, but this value is not in the list of values (in the game, the sword is not displayed on the character doll when installed in the hand slot).
I set the value S1 - Long sword.
After that, the game stopped crashing when a bandit appeared with this sword, when handing the frame for the painting to the artist, and the sword began to be displayed on the character doll in his hand as a long sword.
Perhaps this is due to the visual effect of the sword.
-----
In the NearInfinity editor (github.com/Argent77/NearInfinity/releases), the sword "L#ASSW1.itm" in the "Edit" tab, in the "Equipped appearance" value field, the value "S0" is set, but this value is not in the list of values (in the game, the sword is not displayed on the character doll when installed in the hand slot).
I set the value S1 - Long sword.
After that, the game stopped crashing when a bandit appeared with this sword, when handing the frame for the painting to the artist, and the sword began to be displayed on the character doll in his hand as a long sword.