Alert: Error While Loading File after renaming folder

Godot Version

4.1.1.

Question

I was trying to rename the folder some of my files live in, and after doing so I can’t open one of my scenes. Whenever I try, I get a message saying “Alert: Error While Loading File myScene.tscn” and nothing else. I don’t see anything in the output logs.

I also can’t load any of my other scenes, even ones that weren’t in the affected folder. I’m guessing I broke some dependencies (I was using the editor’s Rename function, I think), but I’m not sure how to fix them. So my project is currently unusable.

How can I go about investigating and fixing this? So far I’ve tried opening the scenes in notepad and looking for the old names of the folders, and I’ve tried renaming the folders to what they were before manually (the editor won’t let me rename them now, the Rename option just doesn’t do anything), but neither have helped.

Looking through version control, it seems that in the affected scenes, a bunch of UIDs have changed. I’m able to reverse my changes from today, but 1) that loses me some work, or forces me to disentangle the necessary changes from the corrupting ones, and 2) I’m not sure how to go about actually reorganizing my project folders; even if I revert to a “clean” state, when I move a seemingly unrelated button into a different folder, and don’t even rename anything, my scenes start breaking again.