I had the issue where a display reported a supported resolution that was actually not supported. This caused macos to get stuck in a loop where macos would try to connect to the monitor, succeed. Only to have the monitor disconnect since it did not support the resolution. This made it impossible to manually change the resolution since macos only shows the settings if the display is connected.
After a bunch of googling and trial and error I solved it with the following workaround: