I think it'll end by war - countries nuking others - or by a huge extinction event like an asteroid. I don't care that much about overpopulation because there's sufficient scientific evidence that population growth will reach a plateau as poor countries become richer.