Treasuries are headed for their longest rally in almost five months, as mounting doubts over the artificial intelligence trade deepen a global stock selloff and drive investors toward haven assets.