### Godot version

v4.1.dev4

### System information

Linux Debian 11, Vulkan, NVIDIA GeForce GTX 1050

### Issue description

When add 3D mesh to a scene, by drag&drop from files menu, it appears correctly, but after move cursor outside the 3D space, such as over nodes menu, Godot crashes. I tested *.obj and *.glb files, both have the same effect.
The error happens in version 4.1.dev4, in version 4.1.dev3 it did not occurred.

```
Godot Engine v4.1.dev4.official.5c2295ff5 - https://godotengine.org
ERROR: Resource file not found: res://InputEventKey_w4so0.
   at: _load (core/io/resource_loader.cpp:278)
OpenGL API 3.3.0 NVIDIA 470.182.03 - Compatibility - Using Device: NVIDIA Corporation - NVIDIA GeForce GTX 1050
 
Editing project: /tmp/a
Godot Engine v4.1.dev4.official.5c2295ff5 - https://godotengine.org
ERROR: Resource file not found: res://InputEventKey_w4so0.
   at: _load (core/io/resource_loader.cpp:278)
Vulkan API 1.2.175 - Forward+ - Using Vulkan Device #0: NVIDIA - NVIDIA GeForce GTX 1050
ERROR: Can't add child '@Node3D@17485' to '@SubViewport@9228', already has a parent '@SubViewport@9228'.
   at: add_child (scene/main/node.cpp:1385)
ERROR: Children name does not match parent name in hashtable, this is a bug.
   at: remove_child (scene/main/node.cpp:1434)
ERROR: Condition "p_child->data.parent != this" is true.
   at: remove_child (scene/main/node.cpp:1411)
ERROR: Index p_index = 0 is out of bounds ((int)data.children_cache.size() = 0).
   at: get_child (scene/main/node.cpp:1497)

================================================================
handle_crash: Program crashed with signal 11
Engine version: Godot Engine v4.1.dev4.official (5c2295ff538312884115c2b7a3aec1e301b8b954)
Dumping the backtrace. Please include this when reporting the bug to the project developer.
[1] /lib/x86_64-linux-gnu/libc.so.6(+0x38d60) [0x7f98180b2d60] (??:0)
[2] /home/krzmig/Programy/Godot_v4.1-dev4_linux.x86_64() [0x2c9521a] (??:0)
[3] /home/krzmig/Programy/Godot_v4.1-dev4_linux.x86_64() [0x24b876f] (??:0)
[4] /home/krzmig/Programy/Godot_v4.1-dev4_linux.x86_64() [0x242f6fa] (??:0)
[5] /home/krzmig/Programy/Godot_v4.1-dev4_linux.x86_64() [0x47d7aa1] (??:0)
[6] /home/krzmig/Programy/Godot_v4.1-dev4_linux.x86_64() [0x2e27c01] (??:0)
[7] /home/krzmig/Programy/Godot_v4.1-dev4_linux.x86_64() [0x476b0e4] (??:0)
[8] /home/krzmig/Programy/Godot_v4.1-dev4_linux.x86_64() [0x4db324a] (??:0)
[9] /home/krzmig/Programy/Godot_v4.1-dev4_linux.x86_64() [0x2d38845] (??:0)
[10] /home/krzmig/Programy/Godot_v4.1-dev4_linux.x86_64() [0x2d3bde6] (??:0)
[11] /home/krzmig/Programy/Godot_v4.1-dev4_linux.x86_64() [0x2d632f5] (??:0)
[12] /home/krzmig/Programy/Godot_v4.1-dev4_linux.x86_64() [0xea3ef0] (??:0)
[13] /home/krzmig/Programy/Godot_v4.1-dev4_linux.x86_64() [0x453bbe3] (??:0)
[14] /home/krzmig/Programy/Godot_v4.1-dev4_linux.x86_64() [0x453ce2e] (??:0)
[15] /home/krzmig/Programy/Godot_v4.1-dev4_linux.x86_64() [0xea459f] (??:0)
[16] /home/krzmig/Programy/Godot_v4.1-dev4_linux.x86_64() [0xe34193] (??:0)
[17] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xea) [0x7f981809dd0a] (??:0)
[18] /home/krzmig/Programy/Godot_v4.1-dev4_linux.x86_64() [0xe6500e] (??:0)
-- END OF BACKTRACE --
================================================================
```

### Steps to reproduce

1. Create new 3D scene.
2. Drag mesh (I tested obj and glb) into 3D space.
3. Move cursor outside the 3D space.

### Minimal reproduction project

N/A
if (data.owner == p_by) {
		p_owned->push_back(this);
	}
	for (KeyValue<StringName, Node *> &K : data.children) {
		K.value->get_owned_by(p_by, p_owned);
	}
}
void Node::_set_owner_nocheck(Node *p_owner) {
	if (data.owner == p_owner) {
		return;
	}
	ERR_FAIL_COND(data.owner);
	data.owner = p_owner;
	data.owner->data.owned.push_back(this);
	data.OW = data.owner->data.owned.back();
	owner_changed_notify();
}
void Node::_release_unique_name_in_owner() {
	ERR_FAIL_NULL(data.owner); 
	StringName key = StringName(UNIQUE_NODE_PREFIX + data.name.operator String());
	Node **which = data.owner->data.owned_unique_nodes.getptr(key);
	if (which == nullptr || *which != this) {
		return; 
	}
	data.owner->data.owned_unique_nodes.erase(key);
}
void Node::_acquire_unique_name_in_owner() {