Hi @harshikakhatri269 ,
For this case, you would need to disable Unique Reference Property in the Queue.
A more handling would be needed to be done in the workflow. You could use Get Queue Items Activity with Filters Enabled for Certain required States only. Check in these queue items if there is a match between the new items to add, If a match is present you could skip the Adding of item to Queue else you could use Add Queue Item Activity and add it to Queue.
Let us know if you were able to perform this.