We should go the asian route of increasing density and size. It's not like Barcelona is fully developed border to border.
https://worldpopulationreview.com/world-cities/barcelona-pop....
Nor does it mean this trade off for a measly 10,000 flats is worth it in such a large city.