The main risk is straightforward displacement. A student who's in school and chooses games over study will see grades slip — not because games are inherently harmful, but because hours spent one place aren't spent another.
A schedule that tends to work is to treat schoolwork as the weekday job and save games and television for the weekend, with plenty of physical activity and clubs in the after-school hours. That gives the hobby a clear place without letting it crowd everything else out.
The students who struggle are usually the ones with no structure at all, rather than the ones who simply play a lot.