Office real estate has been under pressure since remote and hybrid work reshaped how companies use space. Now, artificial intelligence (AI) is accelerating the disruption—and investors are reacting.