Another simple fix for me was (because for 2 hours with chat’s GPT help i could not figure out how to fix it), -
simply create new level,
then in the broken level copy all of the objects with CTRL + C and paste them into the new level with CTRL + V.
The error and the crash is gone.