snap out of

/S N AE1 P AW0 T AH0 V/
verb
  1. 1

    To terminate a mood or emotional state suddenly.

    โ€œI felt sad that he had left, but I had to snap out of it and get on with my life.โ€

Source: https://en.wiktionary.org/wiki/snap%20out%20of