Regulation of housing introduces more nightmares than it solves. Rent control eliminates used inventory. Building regulations limit new inventory.
Solve it by changing the laws to allow new buildings of all sorts, especially very small and cheap apartments. And by getting rid of rent control.