"Accessed None trying to read property ActorComponent" after closing and reopening the project.

Oh, my bad. This is where the error is happening, inside a function in the GameMode blueprint. The “Actor Array” is an array created by doing a get all actors of type UnitBase and this function is called after that array has been created.