Doubt promotes a run-down of your mental checklist to ensure that everything is taken care of. It produces a greater sense caring about what you are doing and the skills you can apply to get the job done. Self-doubt is a necessary part of personal growth and achievement.
Why is it good to doubt yourself?
Self-Doubt Motivates You to Keep Learning and Growing
This ultimately makes you feel confident, sets you up to move forward in your career, and, better yet, opens doors that can lead to the discovery of a new field you might enjoy.
Can self-doubt be useful?
A healthy amount of self-doubt will keep you grounded and humble, even while you're doing great things. While it's important that you get impostor syndrome under control and that you don't let it hold you back, that doesn't mean that you need to eliminate it completely.