If there is, they need to be very careful.
Bailing on the Xbox Series too soon could lead to a Sega situation where the remaining fanbase feels burned and won't want to invest in the new console for fear it too will get cut short, opting instead to wait and jump ship to PS6.
Ultimately, what they need more than anything is exactly what they have lacked since the 360; killer games. Software sells hardware, and they have no answer to Nintendo and Sony's first party heavy hitters.
If the lacklustre first party output continues, the next system will fail just like the Series.