Calling get all actors of class in game instance causing crash on open level.

In game instance I am calling get all actors of class once at the start of the level, currently not attached to anything after calling that.

Then later while still in game I click on the level I want to play, the editor crashes and I get an error about garbage collection.

Everything works fine if I don’t call the game instance event, and instead just put all the nodes directly in the level blueprint.

Seems the problem is when I reference an in game actor in the game instance, then later on try to open a level.

I think all game actors get destroyed when you change the level.