Have you found the solution?
I think it is because you are using Spark 3.5, which is incompatible with Kafka 3.5. Try using Spark 3.4.1 and Kafka 3.9