For Local, I think you’ll need to edit the file at sitename/conf/php/php.ini.hbs and add a line like this to the [xdebug] section:
xdebub.max_nesting_level=512
After saving the file, stop the site and restart it so that Local can compile that change.
You might need to go higher than 512, but remember that this is basically just a bandaid solution. The fact that the Events Manager has over 256 levels of nested function calls seems odd to me, but on the other hand, I guess that could happen with some complex queries that have lots of WordPress hooks involved.
It’s just a setting that we didn’t include, so it’s using the default that xdebug uses. All you need to do is add the line and restart the site in Local!
I added the line with 512, then with 1024, and restarted between each, but it made no difference.
In the end, I found it was being caused by a plugin (Make Elementor Default Editor). So i deactivated that, as it wasn’t essential anyway. Now the problem is gone.