Inventory not seeing stacks of Items Using MAP Keys Values

Hello,
I’m new to Unreal Engine scripting and been following this tutorial on you tube developing an Rpg Game. I followed all the steps and the issue seems to be when turning in the quest the items needed have to be exact. Example 5 pumpkins. If i have more than 5 pumpkins and they are stacked or not stacked and take up other slots in the inventory the quest will not complete. Soon as I remove the extra stacks it completes with just the 5 Pumpkins stacked. If I add an item example 5 pumpkins and 2 herbs to complete it will complete but refuses to remove the items from the inventory. I hope this makes sense. I will link the RPG tutorial and post the code that I am dealing with. I hope my explanation made sense. I see the print string listing values of what is needed but I have over the amounts as I said and will not read with extra in the inventory. Thanks you.

Print string values being reported needed but have over the amount needed in the inventory but it will not let the quest complete without removing the extras items. Also its not giving the reward.