Casting to anything always fails

If I try to get the player controller/pawn/playerstate and cast to my custom versions the cast will always fail for some reason. Everything was working the day before.

I have set the GameMode and everything correctly.

I did a test by running different things through an IsValid node and printing whether it is valid or not.

Get player controller - Invalid

Get player pawn - Invalid

Get GameInstance - Invalid

Get reference to self - Invalid

This makes absolutely no sense. It works in other projects.