Hi RudolfAvagyan,
Thank you for reaching Microsoft Community.
Just to confirm, the monitor is also connected to its own power supply when the issue occurs where it disconnects every 2 seconds, correct? This usually happens if the monitor is drawing power also from the Surface and the Surface is unable to provide enough power and so connecting the Surface to its power supply mitigates the issue.
Also, what is the refresh rate setting of the monitor? To check, go to Windows Settings > System > Display then select the external monitor.
Checking also the monitor specifications (LG 27MD5KL: 27'' UltraFine™ 5K IPS Monitor | LG Global Business), it shows that it only has USB-C ports for display inputs. However, it has several USB-C ports. May I know which USB-C port on the monitor are you using to connect the Surface? Have you tried connecting it to the other ports on the monitor?
For now, kindly try first checking the Surface drivers' health through the Surface app and run the Surface Diagnostic Toolkit then make sure that all updates are installed including Optional updates in Windows Settings > Windows Updates. Do these steps while the device is connected to the monitor. See this page for reference: Fix common Surface problems using the Surface app and Surface Diagnostic Toolkit - Microsoft Support
Also, whenever the monitor keeps on disconnecting, kindly check in Device Manager if a driver especially a USB driver is banged out or getting an error. If there is, provide us with the name of the driver and the error it is getting.
You mentioned also that you previously had a same monitor model in which you were able to have it working fine on the device after getting help from our live support team, can you recall what were the steps taken during that contact that fixes the issue? or do you still have the case number or service request number for that contact?
Kind regards,
Marrion