After betting heavily on the metaverse—and spending billions building it—Meta recently pivoted. Here are leadership lessons ...