If new quest pile is created using discard cards, I guess it would not be wise to cast Wish spell at that round.
Wish (Spell 15) - When taking a random discard, shuffl e all the discards into
a face-down pile and choose three of the cards randomly. If the Quest Deck and
Discard Pile are depleted while performing this effect, the player keeps any cards
obtained and the game ends.