and acquiesced to demands she support a term limits deal on the speakership...”
This is the crux of it. When leaders hang on as long as Pelosi has, never looking to the future of the party and encouraging talent then it becomes inevitable that some young wolves are going to take her out.
She’s 79...I’m sure there were older speaker than that, but obviously her successor doesn’t have to adhere to any term limits deal.
The speaker is whoever can get a majority of the House to vote for him or her.
Any statute placing term limits would be overriden by another statute electing so-and-so to Speaker.