I'm guessing every Pokémon game we saw on Switch was rushed to meet deadlines with anime, merchandise, etc. Pokémon isn't first party Nintendo developed unlike Zelda.
Switch 2 hopefully has enough power to help fix most of the issues, but it will also come down to optimisation.