Casting to game instance always fails when packaging the game

Thank you, your comment really helped me!

UE 5.4.3 here.
Can’t really tell what causes this under the hood, but also came across the problem that the game instance didn’t work in packaged project…
Moving the cast (in question) from construction script to begin play also solved it, many thanks for the hint.