Landlords pumped billions into apartment buildings during the pandemic. That bet could now go horribly wrong.