This is a macOS issue. In my experience macOS handles DP much worse than windows. Windows will keep asking the device for its information, while macOS waits for the device to inform the OS. This can cause issues with monitor detection, as you're experiencing.