Rivian’s stock jumped toward a near five-month high Wednesday, after an analyst who was its biggest bear backed away from his sell recommendation.