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.