Every human on the planet can physically fit inside the state of Texas.
We throw away millions of tons of food a day and actually have to pay farmers NOT to farm.
Could go on but my point is there is no shortage of resources, the problem is how those resources are being distributed.
How many people you could squeeze into a certain area is irrelevant. You might be able to fit every human into Texas but there certainly aren't enough resources there to support everybody on the planet.
The fact that resources are unevenly distributed and sometimes wasted doesn't change the fact that they're limited and earth can't support an infinite number of people.