syntax: Fix span on illegal ABI errors

Fixes #14499