Mine usually surf in pairs or trios and based on results, it is a mating pattern in my case. The females are larger and being chased if I look at the behaviour closely.
I've seen glass surfing from other fish in the past, solo. There wasn't a source of stress that I could point to in those...