Does excessive masturbation in male teen affects height?

No. There's a cult that's published some phony "scientific" stuff making this false claim. It's intended to frighten emotionally vulnerable teens. I'm sorry there are people in this world who get power and money by deceiving others, especially about something as sensitive as a youth's changing body. Best wishes.