Based on my testing, Kafka 4.0.0 appears to be incompatible with ClickHouse versions 24 and below, though I haven't identified the exact unsupported features. Upgrading ClickHouse resolved the issue for me.