hey @Kopal
seems like a known bug which could happen when ssl config on client is not properly.
how did you configure your client to connect to secure cluster?
check also Java Heap Space Error - #2 by daveklein
and Encrypt with TLS | Confluent Documentation
hth,
michael