it seems kafka need tuning in order to get rid of the issues..
Reduce poll.interval.ms
reduce log.mining.sleep.time.millis
From Database side you can guarantee undo retention..
SELECT tablespace_name, retention FROM dba_tablespaces WHERE contents='UNDO';
ALTER TABLESPACE UNDOTBS1 RETENTION GUARANTEE;
Hope it fix the issue