The population of Lanka under Ravana is 100 billion, over 10 times the world population now (see my answer here for details), in a space of one, not that big country, and the population eats meat. From what I found, the highest population density city's population density times the area of Sri Lanka is less than 3% of the population of Lanka under Ravana (41515*65610 = 2.72 billion)
How advanced would Rākṣasas/Yakṣas have to be to stay consistent with their description in the Ramayana? The population is probably a mix of Rākṣasas/Yakṣas due to matching their leader's races. The sizes for Rākṣasas are immense, enough to cover mountain ranges. Yakṣas are resemble cranes (the birds), but are also bigger than humans, but to nowhere near the same extent. They are as tall palmyra-palm.
Vaisampayana continued, 'Hearing these accursed words couched in harsh syllabus,[2] Yudhishthira, O king, approaching the Yaksha who had spoken then, stood there. And that bull among the Bharatas then beheld that Yaksha of unusual eyes and huge body tall like a palmyra-palm and looking like fire or the Sun, and irresistible and gigantic like a mountain, staying on a tree, and uttering a loud roar deep as that of the clouds.
The residents have to be pretty comfortable there, as there is nothing preventing them from expanding to other areas controlled by Ravana.
By the way, I think it makes a lot more sense if they can warp space to give a bigger on the inside houses, but that's more advanced than other explanations like just antigravity for the structural weight (which would be an issue with warping space as well).
Sorry, my mistake for not noticing the pretty exact size for the Yakṣas earlier.
https://www.wisdomlib.org/hinduism/book/the-mahabharata-mohan/d/doc7595.html