The Switch's successor coming out sooner will make the Switch get discontinued at least 1 years after release and up to 2 years after the successor comes out.
Series X I can see it being discontinued shortly after when the next Xbox or the next leap that MS will take with the Xbox ecosystem.
2-3 years after this year, maybe.