Personally, I don't believe there is such thing as overpopulation. There is ineffective utilization of resources and poor management which can be viewed as inability to adapt. Ancient cities couldn't grow beyond 100K population because they didn't have sewers. Once sewers became widespread, major cities hit 1 mln in just a few centuries. I believe the Earth can host many more people than it does now if resources and space are utilized efficiently and human morale is high.