Greg Pauly, the chief operating officer of Massachusetts General Hospital, will step down effective Jan. 31, 2024.