Unfair in what context? If they have their spells lost forever, that is really harsh. I would think once they bought a new book, they could then over time scribe their spells and rituals from memory (or for more "realism" with the help of another wizard, arcane library, etc.).
In the case of...