It went sticky or soft
Updated
On this page7
Why these products are so vulnerable
A hard candy is an amorphous sugar glass with very little water in it, sitting next to air that has more. The difference drives moisture in, and the surface becomes tacky, then sticky, then begins to lose its shape.
Humidity on the day of making matters too
A batch cooked and cooled in a humid kitchen starts life with more surface moisture than one made on a dry day, and it never catches up. Makers in damp climates learn to avoid certain days, and makers who do not track it conclude the recipe is unreliable.
The package is the main defense
A jar with a real seal, a wrapped piece, or a tin that actually closes. For individually wrapped pieces the wrap is doing the work; for a jar it is the closure and the liner. This is the clearest case in the property where the container is part of the product.
Pieces stick to each other, which compounds it
Once tacky, pieces fuse into a mass that cannot be separated without breaking them. A dusting, an interleaving, or individual wrapping is the answer, and deciding which is a decision about how the product is eaten rather than only about how it keeps.
Do not re-dry and sell it
Surface moisture that has been absorbed has also started dissolving and recrystallizing the surface. Drying restores the look partially and not the quality, and a product that softened once will do it again faster.
Measure the room
A cheap hygrometer in the kitchen and in the store room turns this from speculation into a number, and tells you whether the problem is your process, your building or the season.