Cosmic Quake is a rule added in the first expansion (Cosmic Incursion) of the FFG edition. A Cosmic Quake occurs if there are no cards remaining in the cosmic deck or its discard pile and a player is required to draw a card. When this happens, each player must discard all the cards in their hand, then the discard pile is shuffled and each player is dealt a new hand of eight cards.
If, after a Cosmic Quake occurs, there are still not enough cards to give each player eight cards, follow this procedure instead: Deal the cards as evenly as possible to all players plus one "dummy" hand. Any cards that can't be dealt out evenly are added to the dummy hand. When all the cards are dealt, shuffle the dummy hand and it becomes the cosmic deck.
No other decks besides the cosmic deck cause a Cosmic Quake.