Spring Data Neo4j Relationships gets overridden

I already posted this question on stackoverflow but didn't get any response yet.

https://stackoverflow.com/questions/72752493/spring-data-neo4j-relationships-gets-overridden

I have a main entity and it has a relationship with 4 other children.

On the save method call out of 4 relationships one or two get overridden and didn't persist in the database. It has different behavior on every method call. sometimes it saves three relationships but left one, sometimes it saves two relationships and two left aside without persisting to the database.