Monitor does not support 2560x1440 when connected to mac through HDMI
I have been using an HMDI usb-c hub to connect my screen from my mac to my iiyama monitor. It worked fine for the first six months and it had always showed the normal 2560x1440 resolution automatically. Now when i connect the HDMI cable to my mac, it automatically turns to a very small resolution on my monitor and if I go to settings i can only adjust it to a maximum of 1920x1200. The HDMI port and cable work fine with different devices such as a projector so i do not understand what is the problem. Also when i try to mix the display settings (which screen mirrors which etc) it never goes back to the normal resolution and none of the options work.
MacBook Air 13″, macOS 14.5