If someone who suffer from waswas fall into a sin, and while sinning he had thoughts that came saying maybe this is kufr or shirk but repel the thoughts and hate them though he did not stop the sin at the moment he had those thoughts. Is he out of islam ?

Ustadh AbdulAziz al-Haqqan
The answer to all of your questions is no, you are not a kafir. And I heavily encourage you to seek medical help regarding matters of OCD and waswas.