You can survive forever in endless mode. I consider this a flaw. The issue is that even as the waves get larger, the cap on number of enemies on screen does not, so once you can handle the maximum number of simultaneous enemies there's no greater risk from larger waves.