I sometimes do the secret habit because I am not yet married and get urges. I also have ocd and take long during ghusl. All of this resulted in me spending very long in the toilet. I wanted to pray all my salah on time and not deliberately miss any. If I missed fajr (for another reason) and then the 3 Salah that followed (because of the secret habit and ghusl), would this be kufr?
Some of the Scholars have said that this would make a person kafir. But you must make an effort and there’s no excuse for leaving the prayer deliberately, we’re required to pray even on our death bed so imagine you leaving prayers for this filthy habit would end you up where! This feeling of guilt will soon fade away as your heart will get accustomed to this filthy Sin which would subsequently lead to the death of your heart. If you don’t put an end to it, it will lead to more serious things that can be beyond repair such as impotency! Fear Allah and stop it NOW.
Get married if you can, otherwise fast every alternate day and always lower your gaze. Cut all means that lead to such a sin, like cutting off internet from all devices, stop being alone and always occupy yourself with something constructive and keep your mouth moist with the remembrance of Allah. Keep good company, surround yourself with practicing brothers all the time.
Kindly refer to the following link(s):