When you pass in a payload with an invalid URI in a build with assertions enabled, it will crash.
Consuming the error from the failed URI parse prevents the error.
The crash is caused by the llvm::expected having protection around trying to deconstruct without consuming the error first.