### Godot version

4.0.dev (c309de53997feff3286295fb2d71657f112a15db)

### System information

Linux, Nvidia, Vulkan

### Issue description

Editor segfaults when certain conditions are met when using the AnimationPlayer editor.

### Steps to reproduce

1. Create multiple animations, saved into a animation collection
2. Open an existing animation, then make a new empty animation
3. Change from seconds to fps, or add a new property to animate ()
4. Editor crashes

NOTE: It is slightly random and I have not found a perfect repro

### Minimal reproduction project

N/A (TBD?)
transition_selection = memnew(OptionButton);
	transition_selection->add_item("Linear", Tween::TRANS_LINEAR);
	transition_selection->add_item("Sine", Tween::TRANS_SINE);
	transition_selection->add_item("Quint", Tween::TRANS_QUINT);
	transition_selection->add_item("Quart", Tween::TRANS_QUART);
	transition_selection->add_item("Quad", Tween::TRANS_QUAD);
	transition_selection->add_item("Expo", Tween::TRANS_EXPO);
	transition_selection->add_item("Elastic", Tween::TRANS_ELASTIC);
	transition_selection->add_item("Cubic", Tween::TRANS_CUBIC);
	transition_selection->add_item("Circ", Tween::TRANS_CIRC);
	transition_selection->add_item("Bounce", Tween::TRANS_BOUNCE);
	transition_selection->add_item("Back", Tween::TRANS_BACK);
	transition_selection->select(Tween::TRANS_LINEAR); 
	ease_selection = memnew(OptionButton);
	ease_selection->add_item("In", Tween::EASE_IN);
	ease_selection->add_item("Out", Tween::EASE_OUT);
	ease_selection->add_item("InOut", Tween::EASE_IN_OUT);
	ease_selection->add_item("OutIn", Tween::EASE_OUT_IN);
	ease_selection->select(Tween::EASE_IN_OUT); 
	ease_fps = memnew(SpinBox);
	ease_fps->set_min(1);
	ease_fps->set_max(999);
	ease_fps->set_step(1);
	ease_fps->set_value(30); 
	Label *ease_label1 = memnew(Label);
	Label *ease_label2 = memnew(Label);
	Label *ease_label3 = memnew(Label);
	ease_label1->set_text("Transition Type:");
	ease_label2->set_text("Ease Type:");
	ease_label3->set_text("FPS:");