Unable to add a particular custom resolution output option using XRANDR (on Jetson TK1)

I am trying to output a custom resolution (1024x768 and 50.0Hz Refresh Rate)from the Jetson TK1 to a display. But I am unable to do so because when I try to set this custom resolution it displays the error:

X Error of failed request: BadMatch (invalid parameter attributes)

On DFPs, per default only EDID advertised modes are allowed. To lift this restriction, you’ll have to add the ModeValidation override AllowNonEDIDModes to your xorg.conf. This of course does not guarantee that it works, your monitor can still reject it.
https://download.nvidia.com/XFree86/Linux-x86_64/418.43/README/xconfigoptions.html