What looks like a glitch in The Witcher 2 is often simply the result of advancing the story too far. Many quests are tied to a specific act—for example, Act I missions like destroying the Necrophage nests and insect queens must be completed during Act I. Once you move on to Act 2, those quests are automatically marked as failed.
Other events can also cause earlier side quests to fail depending on your choices. If a certain character is killed as part of the story, any task they gave you will fail with them. So it is usually not a bug, but a consequence of how the branching narrative unfolds.