Some Companions came to the Prophet ﷺ and said that they find in themselves thoughts too grave for them to speak. He asked if they really found that, and when they said yes, he said: 'That is clear faith.' The fact that a believer is disturbed by a doubt, and wants to be rid of it, shows that faith is alive. Even the Prophet Abraham, peace be upon him, in the Quran, asked Allah to show him how He gives life to the dead, saying that he believed but asked so that his heart might be at ease, and Allah did not rebuke him but showed him.
Islam distinguishes between passing thoughts, honest questions and settled denial. The Quran describes the true believers as those who believe and afterwards do not remain in doubt, but strive; and, in a verse that scholars apply as a general principle, it tells those who do not know to ask those who do. It also warns against following what you have no knowledge of. So the answer to a doubt is neither to suppress it nor to give in to it, but to look for knowledge: to write down the question, read about it, and ask someone who knows the subject, not only a comment section.
Faith in Islam also goes up and down. When a Companion named Hanzala feared that he was a hypocrite, because his heart was different at home than in the Prophet's company, the Prophet ﷺ told him that if they stayed always as they were in his company, the angels would shake hands with them in their beds and on the road, 'but, Hanzala, there is an hour for this and an hour for that.' Some questions may stay unanswered, and a person can hold firmly to the core evidence for Allah and the Quran while still waiting for answers on details. Keep asking, keep praying, and keep walking.