I found out that if you make eight sea loaf (so you can't make any more) you can safely try to make new food without the risk of losing your ingredients.
Is this a bug or working as intended?
If its a bug then I think the easiest way to fix would be to drop out the foods what don't fit in the inventory.