I do not think its bad. As long as you have another job lined up, give 2 weeks notice, or, if you are able to support yourself while looking for another job...
You have valid reasons for finding something else in a different area. I'm sorry you have been struggling