My approach has been to lean into hobbies. A few of my favorites include: audiobooks, leather working, and managing a home server . I find if I microdose any of those while the dark thoughts are creeping in, these act as my patronus.
Maybe it's a safety blanket kinda thing? Not sure. Good luck