Solved, limiting heap and increasing stack size helped: MAVEN_OPTS: -Xmx3g -Xss2m
MAVEN_OPTS: -Xmx3g -Xss2m