Because of Arjuna timeout / closing the connection after 5 mins, setting following additional JAVA_OPTS
might help:
-Dquarkus.transaction-manager.default-transaction-timeout=3600
-Dkeycloak.migration.batch-enabled=true
-Dkeycloak.migration.batch-size=1000