I walked out of my job tonight

So I been working at a factory for a good while. I’ve really felt my mental health degrading and it’s effecting every part of my life. I was standing there tonight and my chest started hurting, the world started spinning and I couldn’t breathe. Then all of a sudden I thought just leave. I grabbed my shit up didn’t say a word to anyone and walked out. I didn’t clock out, I didn’t tell my boss, I didn’t tell my friends. I called my wife in tears and told her I was coming home. Those were tears of joy. I don’t know what I’m gonna do for work but I know I’m not gonna suffer anymore.