Varnish commit 07d4e752 broke libvarnishapi1 in version 5.2 of the software by introducing backward incompatible API and ABI changes. The problem was fixed in version 6.1 with the needed SONAME bump, and the decision taken by the varnish folks was to not backport the fix to the 6.0 (LTS) release to avoid breaking the stable series during its lifetime.
For our 6.0 WMF packages we thus need to backport the fix ourselves, patch varnishkafka to depend on libvarnishapi2, and rebuild it.