If Nintendo can push off a Switch successor until 2025, I can definitely see it passing PS2 & DS. Switch could even potentially beat PS4+Xbox One combined (about 169 million max for those 2 combined most likely).
Frankly, I can't see a successor launching before 2025 (and I hope it doesn't get announced until 2025 as well). I actually think we will get a Switch revision in March 2023 alongside BOTW 2. Basically a Game Boy Color/DSi/New 3DS sort of situation.
Late 2025 is also good enough to guarantee that the successor has a solid first year. We could see 2D Mario, Mario Kart and Pokemon Gen 10 in Late 2025 for the new system. Although I could see Gen 10 still being playable on the regular Switch akin to how GS was playable on GBC & GB (even though Switch to a Switch successor is a new generation whereas GB to GBC seemingly is not). Then we could see games like Animal Crossing and Smash Bros in 2026. Honestly, Switch 2 has a good chance of having a bigger first year than Switch did.