The housing problem in Japan's big cities did not fix itself with a shrinking population (they're growing) but instead with nationalization of land use laws.
> If the population trends are correct, the housing problem will fix itself.
Only if climate change doesn't reach levels where lots of coastal properties are wrecked by rising seas. IIRC a large fraction of global population live close to the coast.