"Pending kill or garbage" on my spawner.

Hello everyone,

I am trying to recreate a game similar to Snake. I created an actor that spawns the apple. In the beginning, I used an event dispatcher every time the snake ate my apple, but from time to time the apple reference in the spawner got broken and I received the “pending kill or garbage” error. Of course, the apple was no longer spawning once the reference broke.

Now, I fixed this error by creating a timer and using a validated get, the reference still got broken from time to time but at least the apple keeps spawning.
I was wondering if there is any way to avoid that error and/or something more efficient to spawn my apple.

Thanks in advance!