Getting OOM command not allowed when used memory > 'maxmemory

Exception in addInHashes() : io.lettuce.core.RedisCommandExecutionException: OOM command not allowed when used memory > ‘maxmemory’."

i m getting this error while running load on my system which inserts data into keydb and remove after call completion.Can any body please help to resolve this .? we have tried multiple things. we increased keydb memory to 4GB as well. still issue persists. we are not able to achieve expected performance.