4.x
When loading a Godot 3.x project in Godot 4.x, instantiate() returns null.
I think this is because the scene is not loaded properly, as you converted the project from 3x to 4x. So first try to open the scene properly that you are trying to intantiate.