All kinds of other wireless signals can cause unstable connections, especially with the poor implemented WiFi cabilities of the console. When nearby cars using Blutooth drive by, it always causes extreme Ping peaks during my Rocket League sessions. Same happens when my girlfriend uses a Blutooth speaker, it totally messes up the Switch's WiFi. And don't get me started with Microwaves, those are the worst!
Get yourself an usb lan adapter to connect your Switch with the Router. It's a much more stable experience. UGREEN was the company I bought my lan adapter from, it works beautifully and is much cheaper than the Nintendo licenced one (even supports USB 3.0). Got it from Amazon.
EDIT: Even with lan you will experience lag, but as long as your Router works fine, you shouldn't experience any disconnects and an overall more stable online experience. Keep in mind that connection errors are only on your end when you lose the Match after the disconnect. Some of my enemies just d/c and this message then shows up, even though I get the win and points, since they gave up.