Package: dpkg
Version: 1.19.7
Command example throwing the error:
dpkg-query --show --showformat '${Package} ${source:Upstream-Version}\n' s*
Error message:
dpkg-query: error: version '' has bad syntax: version string is empty
>From the manual per 1.19.7 / 2019-06-03
"source:Upstream-Version
It contains the source package upstream version for this binary
package (since dpkg 1.18.16)"

