It's hard to say without knowing more about your situation.
But generally I would say life is too short to waste on a dead end job where you're not learning or adding value.
I'd prioritize finding something you're excited about before quitting. You may even be able to transition your immigration process.