Even if you don't have DID or BPD, I would try some self talk. Ask for some calm and tell yourself that help will be coming shortly and please don't hurt the body. Ask yourself to let you know where the pain is, tell yourself that you want to help but it's difficult when you don't know where the upset is coming from. Any clues would be most welcome and these can be sending thoughts or words in your mind, writing down some things that are frustrating, drawing pictures or sending images in the mind. Don't refrain from stating aloud or on paper specifically how upset and frightened you are.
You can assume that if there is cutting and you're losing blocks of time, part of you is very upset. That may be obvious but there are several things you can at least try even if there is no guarantee of quick success. But given what some people report when they talk to themselves with compassion and express an interest in helping the part that hurts, self harm can halt and stability can return pretty quickly. It takes consistent and honest effort and probably a little luck in hitting just the right communication.