My TArray of one structure works when declared inside a function, but not when declared on header file

I’m calling the function on each actor BeginPlay,

The actors are already on the level, on begin play each actor individually uses a Function Library to get a ref to GameMode and from that they call the AddProgressEvent, passing “this” and GetActorLocation().X.

I tried setting a timer on the begin play, so that the functions is called only 3seconds after, but it crashs anyway, same result.