### Godot version

4.1

### System information

Windows 11 AMD (Forward +)

### Issue description

Whenever I correct color via World Enviornment adjustments with a Curve, I get the error: 
E 0:00:02:0794   parse_message: Condition "p_args.size() < 10" is true. Returning: ERR_INVALID_DATA
  <C++ Source>   scene/debugger/scene_debugger.cpp:177 @ parse_message()

![image](https://github.com/godotengine/godot/assets/23708144/1b9d2c43-cf39-468c-bbdb-39ebb4521a41)

This is similar to #74697, where a curve was exported.
What is unclear to me:
Is the color correction correct? What is the meaning of the error? This does not happen in Godot3.

### Steps to reproduce

1. Open project and run it
2. Go to Camera, World Environment, Adjustments and Color Correction
3. Change points in Curve
Alternatively:
1. Change Curve to Gradient and run it
2. Change Gradient while running

### Minimal reproduction project

[ramp_test.zip](https://github.com/godotengine/godot/files/12082129/ramp_test.zip)

Array prop = props[i];
		ERR_FAIL_COND(prop.size() != 6);
		CHECK_TYPE(prop[0], STRING);
		CHECK_TYPE(prop[1], INT);
		CHECK_TYPE(prop[2], INT);
		CHECK_TYPE(prop[3], STRING);
		CHECK_TYPE(prop[4], INT);
		PropertyInfo pinfo;
		pinfo.name = prop[0];
		pinfo.type = Variant::Type(int(prop[1]));
		pinfo.hint = PropertyHint(int(prop[2]));
		pinfo.hint_string = prop[3];
		pinfo.usage = PropertyUsageFlags(int(prop[4]));
		Variant var = prop[5];
		if (pinfo.type == Variant::OBJECT) {
			if (var.is_zero()) {
				var = Ref<Resource>();
			} else if (var.get_type() == Variant::OBJECT) {
				if (((Object *)var)->is_class("EncodedObjectAsID")) {
					var = Object::cast_to<EncodedObjectAsID>(var)->get_object_id();
					pinfo.type = var.get_type();
					pinfo.hint = PROPERTY_HINT_OBJECT_ID;
					pinfo.hint_string = "Object";
				}
			}
		}
		properties.push_back(SceneDebuggerProperty(pinfo, var));
	}
}
SceneDebuggerTree::SceneDebuggerTree(Node *p_root) {