I think this is a synchronisation issue where .save() is called 2 times simultaneously and JPA doesnt detect that the object exist and tries to insert both simultaneously.
@AmitKumar Can you confirm if this was the issue? What was the solution to your problem?