Thank you.
It was indeed a faulty display port to HDMI cable.
I bought this one which was a bit more expensive and it worked.
4K DisplayPort to HDMI Cable, WARRKY 10ft [ Gold-Plated Connectors, Aluminum Shell ] Uni-Directional 4K UHD High Speed DP to HDMI Cable Compatible for Lenovo, HP, DELL, GPU, AMD, NVIDIA, More https://www.amazon.com/dp/B087Q92JCQ/ref=cm_sw_r_cp_api_i_NATJ1YFWR6FQ3VQG2TRX