Cc.game.restart() - crash on Android 7.0 or higher

Hello!
I am developing an app with Cocos2d-x - JavaScript.
cc.game.restart() crashed on Devices with Android 7.0 or higher. (cocos v3.15.1 and v3.16)
the error is in row 918, ScriptingCore.cpp -

free(iter->second->jsclass);

on Devices with older Android there is no problem.

What can I do???