Sorry, but this deficit it's pretty unique to Spain. There is no country in Europe with this level of immigration.
According to your argument, the answer to when to build is a good moment to build is "never". I can't agree, and there are counter examples too. The mass rural to urban migration happened less than 60 years ago, and the answer wasn't "do nothing".