Custom resolution not working

I’m working on a Dell M6700 with a Quadro K4000M graphic card with an external monitor on CentOS 7. As my external monitor has a resolution of 2560x1440 I’m trying to add that resolution as the Nvidia drivers only give me 1920x1080, with xrandr command but I’m getting this error

xrandr --addmode DP-0 “2560x1440_60.00”

X Error of failed request: BadMatch (invalid parameter attributes)
Major opcode of failed request: 140 (RANDR)
Minor opcode of failed request: 18 (RRAddOutputMode)
Serial number of failed request: 45
Current serial number in output stream: 46

Can someone give me a workaround to add that resolution?

Thanks a lot in advance