Display port showing resolution error while system detected a link failure

My monitor went crazy overnight and I am trying to figure out what went wrong because I can still create a 3840×1080 desktop, but the following message appeared: “The system has detected a link failure and cannot set the requested resolution and refresh rate on your display port display. Your display might not support the requested resolution on there may be an issue with the cable connecting the display to your computer.” Can someone please help me?
Displayport Link Failure
The system has detected a link failure and cannot set the requested
resolution and refresh rate on your DisplayPort display. Your display might
not support the requested resolution on there may be an issue with the cable
connecting the display to your computer.
