Don’t know if this is a bug or part of the game.
When I put wheat seeds in a backpack I have a very limited time to plant them. The despawn quicker then any other seeds - except cabbage seeds which seem to do the same thing.
Also it’s very odd that seeds would despawn in a backpack while stored away.