Yes I have just walked out. (If safety issue)
Sometimes they asked me for txt. Notice would be good if you can give it. Might be a given time period ie two weeks or month etc for a good reference. That will be in contract.
“I’m relocating” is all you need to say.
Please be aware some bosses get out of control. Some have emotional time – this is normal. It’s your life and you are relocating for excellent reason and they should understand that. Hope that helps from veteran of leaving places.