I'm a self-published author and for the most part I've only had two major dry spells writing privately -- one after a massive breakup and another really bad major life event happened nearly simultaneously, and another after the 2016 trainwreck (because I'm queer and run in queer circles), which happened about the time a loved one and a friend both died. (I'm still trying to recover from that one now.) :(
Sometimes "just do it" helps, or at least starts to prime the pump a bit. Sometimes it's just a waiting game and getting words while waiting can help.
Sometimes you can kind of sidestep it by writing about your own pain in fiction, and about characters who find their way through similar things. At least, it's kinda how it worked for me last time. (And reading more has helped for big and small dry spells, always, at least a little bit.)
I hope you find what you need. I don't know if I'm going to, but I'm trying, and I'll keep my fingers crossed for you!