these errors usually happen if either two plugins are incompatible to each other, or if you neglegtec to start a new game after you changed something in the plugin manager.
Most plugins only configure their data in the sequence when pressing the "new game" on the title screen, so adding or removing a plugin requires you to start a new game. If you continue a saved game after changes in the plugin manager, you'll get crashes as soon as the game gets to data that hadn't been configured correctly within the savefile (part of the plugin data is stored there).
additionally it could also be caused by wrong order of plugins (yanfly especially requires the correct order) or wrong configuration in the notetags.
if you need more help, press F8 on that error message and give us a screenshot of the console with the full error trace. And show us a screenshot of your plugin manager with all plugins and their order.
Thank you for these tips! I always start new game while testing, so this must have been a plugin order issue.
I've gotten rid of the error by removing the unused plugin so no further help is needed. Thank you 🙂