Regarding your problem, I read in another post that there might be some race conditions but that’s usually when the game start and not when you PIE (Play In Editor) and Stop.
The solution mentioned was to move the initialization to the starting of the module.