Please tell me how to deal with bad thought (thought of kufr) I am really distributed by these thoughts I cry and do tauba but it keeps on happening to me

Salam. I have a question before I proceed. Are these thoughts doubts about the religions veracity or thoughts of committing haram actions?