Monitor input signal out of range

So I just bought an PNY Nvidia Geforce GTX 1050 ti, and a 21.5 inches lenovo monitor. Everything works nice.

But I wanted to use my old Lcd monitor (HP vs17e) which only supports VGA. But my graphics card doesn't have VGA input. It has HDMI and DVI. So I bought an HDMI to VGA adapter. Used it on old monitor. Computer starts okay, but before login window, my monitors goes black and says "input signal out of reach, change settings to 1280x1024 60hz."

So I used my new monitor, change resolution to 1208x1024, changed refresh rate to 60hz. Then used my old monitor but the same problem persists. What am I doing wrong?

Here is the adapter I'm using:
https://www.amazon.com/...00ZMV7RL2/

My old monitor:
https://support.hp.com/.../c00603940

How can I get my old monitor to work with the new graphics card?

Use a DVI-VGA adapter instead.