I have to dissolve my 401k after a move

It's about 30k. Unfortunately, I need to. Is there a way to cut the massive tax hit? And does it matter if I'm in NC now, as compared to NY, where I moved from?