The first thing, is that you clearly recognise that there is a problem here.
Depending upon how long this has been an issue, it is unrealistic to assume that you will be able to escape this vicious cycle entirely alone.
For you, the next steps to improve or break this cycle would be to set up mechanisms to protect you and your family from you entering this cycle being in it for too long.
Practically, this means telling people at certain points for example if it’s been three days and you have yet to hear from me then call me she will leave me an email there with these words and this can act as a trigger to make you recognise that you are in this cycle.
Alternatively, you can set alarms for yourself or goals when you are in the midst of work that completely take you away from work at certain points.
There is no correct answer for this. The important thing is that you simply try different strategies and see what works for you most effectively.