I found fix for this issue:If you have an NVIDIA card using DisplayPort connection, there is an additional possibility. UEFI support on some Nvidia cards out of the box only includes HDMI and not DisplayPort. The following vendor firmware update can expand the existing UEFI support to include the DisplayPort GPU plug.
NVIDIA GRAPHICS FIRMWARE UPDATE TOOL FOR DISPLAYPORT 1.3 AND 1.4 DISPLAYS https://www.nvidia.com/en-us/drivers/nv-uefi-update-x64/
NVIDIA GRAPHICS FIRMWARE UPDATE TOOL FOR DISPLAYPORT 1.3 AND 1.4 DISPLAYS
edit: Just install the fix and it will work. It works only for nvidia series cards mentioned in the link.