If you are asking whether the resignation will automatically disqualify you, it will not. The UI office will take the circumstances into consideration.

But neither can I guarantee you that it will be entirely disregarded.