X_GH_RESPONSE_INVALID
Means
gh's output is not the shape the command reads
Typical cause
GitHub changed a field, or a query was edited without its schema. The response is parsed, never cast: a null where an id was expected would otherwise become a resolve call against undefined
Fix
the finding names the field that did not parse; x pr review --json