ANSWER:
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):