HDMI?
Maybe the driver is limited and cannot support 240Hz, because 2560x1440@240hz might exceeds the available HDMI2.0 bandwidth ( didn’t check though). You could try connecting the Display via DisplatPort instead of HDMI.
Update:
oops, missed the fact that you’re using DP.
It may also be related to the DP cable between the PC and the monitor. Have you verified that you are using the latest and best DP cable? Older cables are not able to support the highest settings on newer monitors & GPUs.