Parag Agrawal, Twitter’s chief executive, is grappling with a takeover where nobody “would want to be in those shoes.”