I was literally just going to post a similar thread. Evga RTX 2070 S.
My situation is weird. When I alt-tab out of a game I get an audible coil whine when I alt tab back into the game, it goes away. If I set the game to windowed or borderless I don't get the whine at all, alt-tabbing or...