It was moved before the sugar had set
CommonThe sugar in a biscuit is molten at baking temperature and rigid at room temperature, and the transition happens on the tray. A biscuit lifted while hot has only its starch and whatever egg it contains holding it, which in a shortbread or a flapjack is close to nothing — so it bends, breaks at the edge, or crumbles as the spatula goes under it. The same biscuit left for a few minutes lifts cleanly. This is the single most common cause of a biscuit that is crumbly at the edges and perfectly sound in the middle, and it is entirely a handling fault rather than a formulation one.
What to change
Leave them on the tray until the sugar has set
Leave the tray alone for several minutes after it comes out, until the biscuits have firmed enough to slide rather than bend. Cut flapjacks and biscotti while they are warm if they are to be cut at all, but move the pieces only once they are cool. If the middle of a biscuit is still soft after cooling, that is underbaking rather than handling and needs a longer bake, not a longer rest.
Biscuits that break at the edge or crumble as they are lifted while sound in the middle. Not a fix for a biscuit that is crumbly all the way through, which is a formulation matter.
Trade-off: Left too long, the sugar bonds the biscuit to the tray, and prising it off then does the damage the waiting was meant to avoid.