You might find yourself in the situation with a funky monitor and a pesky Ubuntu wanting to boot with a unsupported display mode. 🙁 It happens. You can edit your grub config as follows ( /etc/default/grub )
I have marked 2 key lines to change. You can then
grub2-update