Im having the same issue but everything runs like normal and then it just crashes when bowser is thrown offscreen. I updated to the newest twlmenu release 25.10.0 but the error still occured.
I tried the fix but it just sent me back to the game and the error popped up again. I updated to the latest release of twlmenu (v25.10.0) and nds bootstrap (v0.72.0) but the error still happened. I still dont know how to fix it.