Minimum critical size of ecosystems