Shall I ask the editor that I want to withdraw my paper citing this as a reason?
Resolve the co-authorship dispute with your advisor first, before doing anything with your paper.
Let's give your advisor the benefit of the doubt. It is possible that they actually did contribute significantly to the development of your paper, but in ways that you may not recognize.
So I would recommend asking them, directly but calmly, what they believe they contributed to the paper. And then LISTEN.
If their only answer is "I'm your advisor", start looking for a new advisor.
Same for "I pay your salary" or "I need it for my tenure/promotion case" or "It's a department/university rule". The only ethical justification for co-authorship is a novel and significant intellectual contribution to the paper. The requirements are the same for your advisor, your department chair, your office mate, the bartender at your favorite pub, or some random stranger on the internet.
But your advisor might remind you of activities that they consider significant intellectual contributions, even if you don't. For example, if you and your advisor discussed your research results as they evolved, those discussions could be enough of a contribution for co-authorship even if no concrete ideas from those discussions appear in the paper. In particular, steering you away from tempting bad ideas is definitely a contribution.
Whether their contributions really are significant enough for co-authorship is something the two of you will have to negotiate, but I recommend erring on the side of generosity. Not because they're your advisor, or because you "owe" them, but because generosity pays off more in the long run.
Alternatively, they might have expected to be more involved—as a colleague and mentor—in the research and writing process. After all, their job as your advisor is to help you become a better researcher, but they can't do that job if you don't let them. That's not a good argument for retroactively making them a coauthor of this paper, but it is a strong indicator that you and your advisor need to discuss your expectations for future research much more clearly.
If you are seriously worried about your advisor overreacting ("spoiling your career"), you should discuss the situation first with your department chair, graduate program director, department ombudsman, or one of your other faculty mentors. (You do have at least one other faculty mentor, don't you?) Again: LISTEN. Given the high emotions involved, it might be appropriate to invite the other faculty member to mediate the discussion between you and your advisor, or at least act as a neutral observer. Hopefully, your worries are unfounded.
And if you can't trust your advisor enough to have the discussion at all, I'm afraid your relationship with your advisor is broken. Start looking for a new advisor that you can trust.