All the below are thoughts:
If a Muslim breaks his Namaaz many times after starting it and then thinks to himself and says in his mind that he won’t break his Namaaz again and if he does break it then it will be kufr or he will become a kaafir but still ends up breaking it and restarting again. Or if he thinks to himself that starting and reading his Namaaz one more time or one last time without breaking it(after he had broken his Namaaz more than once) will not be kufr but he starts and breaks it again. Or if a Muslim thinks to himself that starting and reading his Namaaz without breaking it won’t be kufr but he doesn’t complete his Namaaz and breaks it and then restarts it again. Or if a Muslim thinks to himself that it’s not kufr and won’t be kufr if he reads his Namaaz now but starts and breaks it and restarts his Namaaz many times. Or if a Muslim thinks to himself that it won’t be kufr if he reads and starts and completes his Namaaz this time (after breaking his Namaaz at least once) or this one last time but he doesn’t complete it and breaks it instead and then restarts it again. Does any of the above thinking or doing the above explained or any of the above explained cause kufr?