HI! I've encounter this while opening the menu of the project.
and here's the dev tool
OH! and pressing f9 opens only the Switch/variable menu, but probably that's just because of the error. Thank you in advance and hope you take your time :)
Try getting the latest version of my plugin, and updating the Core Scripts. You can do that in RPG Maker -> Game -> Update Core Scripts.