Wave 30 is like a new record for what I'm concerned, the difficulty of the endless mode ramps really hard so at some point it is indeed impossible. I'm surprised you got that far so congrats!
Yeah, I would say it is the last possible wave if I indeed made the mistake to change a tower in the last second. If not wave 29 is probably the best you can do rn.