this means that you have in your design two gates with the same Ref Designator and with PIN 1 assigned.
You need to remove Ref Designator from one of the two gates and this will be assigned to a different ref designator by packager.
It was indeed caused by duplicate refdes.
Thank you for your help.
Will you mark this question as answered please, so that users know it is not outstanding.