It was introduced by this PR to address an Apple bug where the recognizer is stuck at .failed state (the XCTAssert here).
When running the test on iOS 26, the state is now .possible (hence the test failure). This means that Apple likely fixed the bug on iOS 26.