Spawning AI Doesn't Work Properly?!

The controller gets spawned before the pawn so the begin play triggers before possessing the pawn which means GetControlledPawn is Null, you should handle the OnPossess instead like the imag below, or do handle everything in the begin play of the pawn by getting the controller and executing some function on it from the pawn.