Why does my new monitor do this?

After logging in to windows it does this. Samsung g55c, 1440p165hz monitor connected to a gtx 1080 with a displayport cable. In my brothers 4060 pc it doesn’t flicker. I have updated graphics drivers and tried a different cable