### 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)

SceneDebuggerObject obj(p_id);
	if (obj.id.is_null()) {
		return;
	}
	Array arr;
	obj.serialize(arr);
	EngineDebugger::get_singleton()->send_message("scene:inspect_object", arr);
}
void SceneDebugger::_set_object_property(ObjectID p_id, const String &p_property, const Variant &p_value) {
	Object *obj = ObjectDB::get_instance(p_id);
	if (!obj) {
		return;
	}
	String prop_name = p_property;
	if (p_property.begins_with("Members/")) {
		Vector<String> ss = p_property.split("/");
		prop_name = ss[ss.size() - 1];
	}
	obj->set(prop_name, p_value);
}
void SceneDebugger::add_to_cache(const String &p_filename, Node *p_node) {
	LiveEditor *debugger = LiveEditor::get_singleton();
	if (!debugger) {
		return;
	}
	if (EngineDebugger::get_script_debugger() && !p_filename.is_empty()) {
		debugger->live_scene_edit_cache[p_filename].insert(p_node);
	}
}
void SceneDebugger::remove_from_cache(const String &p_filename, Node *p_node) {