Spiced nuts will be a little sticky until they are completely cooled. As they cool, the sugar coating will harden. It could be that they weren't entirely cool when you stored them. The condensation inside the airtight container can make them sticky. If the pecans are sticky, spread them on a baking sheet lined with parchment paper and bake them at 325°F for 5 to 10 minutes.