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

} else { 
			int len = 0; 
			encode_variant(var, nullptr, len);
			if (len > p_max_size) { 
				hint = PROPERTY_HINT_OBJECT_TOO_BIG;
				hint_string = "";
				var = Variant();
			}
		}
		prop.push_back(hint);
		prop.push_back(hint_string);
		prop.push_back(pi.usage);
		prop.push_back(var);
		send_props.push_back(prop);
	}
	r_arr.push_back(uint64_t(id));
	r_arr.push_back(class_name);
	r_arr.push_back(send_props);
}
void SceneDebuggerObject::deserialize(const Array &p_arr) {
#define CHECK_TYPE(p_what, p_type) ERR_FAIL_COND(p_what.get_type() != Variant::p_type);
	ERR_FAIL_COND(p_arr.size() < 3);
	CHECK_TYPE(p_arr[0], INT);
	CHECK_TYPE(p_arr[1], STRING);
	CHECK_TYPE(p_arr[2], ARRAY);
	id = uint64_t(p_arr[0]);
	class_name = p_arr[1];
	Array props = p_arr[2];
	for (int i = 0; i < props.size(); i++) {
		CHECK_TYPE(props[i], ARRAY);