MBP 2017 making high pitched noise when in Target Disk Mode Recently, when I was transferring data between two MBPs, I found that the 15-inch 4 Thunderbolt MBP 2017 was making a high-pitched noise when in Target Disk Mode and connected to another mMc. It doesn't matter whether the MBP was charging or not. It doesn't matter when I connect; as soon as I do, it starts making high-pitched noise. What is a possible explanation for this? The MBP does not make high-pitched noise when in Target Disk Mode but not connected to another mac, when booted up into recovery system, when booted up into 10.13, or when booted up into 10.15.
There are many reasons for high pitched noises (commonly referred to as electrical squeal).  However, without hearing it and being able to put hands on, it's impossible to diagnose.

Try a higher quality Thunderbolt 3 cable.  An active cable which will handle higher bandwidth and more power is a good bet.
Determine if it's coming from the speakers by manipulating the volume.  If it is, some part of the audio circuitry is picking up noise and amplifying it.  This is a logic board issue.
It could be a shielding issue - as silly as it sounds, you might be able to solve this by wrapping the cable in aluminum foil.

The OS and TDM mode aren't going have any effect on electrical noises; these are created when electrons move through a conductor and they can sometimes produce a squeal or a whine. However, the bottom line is that your Mac is not supposed to be doing that.  If it is, there's likely a failed component and it must be taken in for service.