Create an anxiety journal
By giving all of your thoughts somewhere to go, keeping an anxiety journal might be beneficial for preventing intrusive thoughts. You can keep a journal for your anxiety as a place to express your stress, fear, and uncertainty. It is enough to have a space where you may write or type your thoughts in the journal; so it doesn't need to be very fancy. You don't need to judge which of your thoughts are valid, reasonable, or irrational before writing them.
In fact, practicing this is the greatest way to stop thinking, especially repetitive thoughts. If the thought comes to mind again just after you write them down, you’ll remember having this thought already. Writing in a journal can help you analyze your thoughts and change them from anxious and ruminative to empowered and action-oriented.