So I came here with the exact same problem. Brand new Dell U3419W out of the box and I'm connected to two machines:
- MacBook Pro > USB-C
- Mac Mini > Displayport
I also have USB-C charging set to "ON" when the display is off. But I don't think that setting makes a difference because that's just saying your computer will charge when the monitor is turned off—Has nothing to do with this issue.
Issue: While on my Mac Mini (Displayport input), I was getting USB-C "unplugged" / "plugged" notices from the Dell monitor, about every 30 secs to a minute. The MacBook Pro was triggering this. Checked the cable and everything seemed to be fine.
I've solved the issue by going to the MacBook Pro and turning off Energy Saver features for Power Adapter mode. It's up to you what settings you want for Battery too:
[ENABLE] Prevent computer from sleeping automatically when the display is off
I think this is the key setting. Sleeping any macOS machine is BAD if you want connectivity to certain devices to stay persistent.
[Disable] Put hard disks to sleep when possible
Turn this off. It's probably not relevant to this display issue, but this can also cause connectivity issues with devices that use your disk (e.g. If you're a video editor)
[Disable] Power Nap
This should always be off, regardless of this display issue. It's a terrible feature that causes a lot of problems with apps and device connectivity. I'd guess that this is what was causing the problem... Every time you got the spotty connection warning, I bet the computer was doing it's periodic checks for email or whatnot, turning itself on briefly, triggering the monitor. I would guess that this also affects the "Auto" input switching—If you have that turned on, Power Nap would be switching your inputs when you don't want it to.
Annoyances, but I think they're solvable :) Hope this helps!