the noise problem is dealt with through good layout and compact (surface mount) design.Really then no one one yet has been able to rid of this, and they are mightier minds than you. Only Technics has so far been able to reduce it greatly, with double the switching frequency speed and then the normal output low order filtering of it.
As you can see in this simulated 1khz square wave shot, the ideal is the "grey" square wave no ringing.
The "red" is the what’s available today and it hasn’t changed, the last photo below is whats representative of today’s class-D’s
The Technics is the "blue" uses the GaN transistors, very fast quickly settling and reduced ringing, much closer to resembling the ideal grey square wave.
https://ibb.co/87Kh2mV
And now bench tests of Stereophile, use a special very low power high order -100db line filter between amps output and test gear input.
(Audio Precision’s auxiliary AUX-0025 passive low-pass filter),
Which eliminates noise between amp’s output and test gear input so reader can’t see it anymore.
1khz square wave with AUX-0025 filter in place:
https://www.stereophile.com/images/1212AM1fig03.jpg
1khz square wave without AUX-0025 filter in place:
https://www.stereophile.com/images/1212AM1fig02.jpg
Cheers George