For two decades, data centers were relatively safe, lucrative real estate investments. They attracted investors because they served as digital infrastructure—the essential plumbing that keeps the internet running.