### Godot version

4.0.2

### System information

Windows 10

### Issue description

If an error in the Debugger/Errors menu caused by a C# script is selected every time the project is executed a "Save Resource As" menu appears.
![Erro1](https://user-images.githubusercontent.com/6534007/234107005-1455895e-50d3-452a-b153-dae219f98211.PNG)
![Erro2](https://user-images.githubusercontent.com/6534007/234107008-315b7fed-d0ef-4573-ad76-9f0992f83a51.PNG)


The only way to stop it for appearing is restarting Godot.

### Steps to reproduce

1. Execute a C# script with an error
2. Select the error in the Debugger/Errors menu
3. Click "run project"
4. A "Save Resource As" menu appears.

### Minimal reproduction project

Example code with error:

```csharp
using Godot;
using System;

public partial class ErrorTest : Node 
{
    public override void _Ready() 
    {
        Node nullNode = null;

        nullNode.ToString();
    }
}


```


_put_msg("servers:memory", Array());
}
void ScriptEditorDebugger::_video_mem_export() {
	file_dialog->set_file_mode(EditorFileDialog::FILE_MODE_SAVE_FILE);
	file_dialog->set_access(EditorFileDialog::ACCESS_FILESYSTEM);
	file_dialog->clear_filters();
	file_dialog_purpose = SAVE_VRAM_CSV;
	file_dialog->popup_file_dialog();
}
Size2 ScriptEditorDebugger::get_minimum_size() const {
	Size2 ms = MarginContainer::get_minimum_size();
	ms.y = MAX(ms.y, 250 * EDSCALE);
	return ms;
}
void ScriptEditorDebugger::_thread_debug_enter(uint64_t p_thread_id) {
	ERR_FAIL_COND(!threads_debugged.has(p_thread_id));
	ThreadDebugged &td = threads_debugged[p_thread_id];
	_set_reason_text(td.error, MESSAGE_ERROR);
	emit_signal(SNAME("breaked"), true, td.can_debug, td.error, td.has_stackdump);
	if (!td.error.is_empty()) {
		tabs->set_current_tab(0);
	}
	inspector->clear_cache(); 
	_put_msg("get_stack_dump", Array(), p_thread_id);
}
void ScriptEditorDebugger::_select_thread(int p_index) {
	debugging_thread_id = threads->get_item_metadata(threads->get_selected());
	_thread_debug_enter(debugging_thread_id);
}
void ScriptEditorDebugger::_parse_message(const String &p_msg, uint64_t p_thread_id, const Array &p_data) {