After reviewing the source code, the batch processing is done asynchronously and eventually uses Future for callbacks.
It is clear that the callback here is null, which will definitely cause an error.
I suggest checking the cluster environment. If batch 1 and 10 to 100 all report errors, there must be an issue with the environment.

