A right-handed pitcher who was traded by the Yankees in a blockbuster 2021 trade suddenly retired at age 29.