External display continously unplugs with Macbook Pro M2
Hello, I have a Macbook Pro M2 2023 14" (currently running Sonoma 14.4.1) and an external Dell U3824DW display. The display has an integrated dock with a unique USB C cable that also powers the macbook.
Normally, I plug the Macbook every morning to the display keeping the lid closed, as the display is big enough and I don't need a second display.
Sometimes, when the Macbook is not fully charged, after a couple of seconds since I plug it the display disconnects removing power to the Macbook and also unsafely unplugging the TimeMachine drive. After 2~3 seconds it reconnects and disconnects just after, continuously. In addition to being annoying, I am also worried for the Time Machine harddrive, as it is my backup and I'd like to avoid to ruin it and lose all my data.
The only workaround I found right now is to keep the lid open for some time, to let the Macbook charge, then I can close it and it works normally. Is there a way to force the Macbook to not unplug external devices when the lid is closed or any other solution to the problem?
Thanks in advance.
MacBook Pro 14″, macOS 14.4