There's no rule against using the same auxiliary verb, including will, more than once in a sentence.
Consider these two examples, written by native speakers, found in a search for "will decide that he will":
My husband, who is a pediatrician, still holds on to a hope that Adrian, one of our youngest, will decide that he will do it after all.
(source)
and
It may well be that the circumstances are such that the franchisor will decide that he will terminate the contract...
(source)
In fact, you could have used it three times by using will before come, but it's probably better to avoid that much repetition.
So there is nothing wrong with your sentence grammatically.
You could use the simple present instead of the first future will, as in
Shyam decides that he will work hard for the upcoming exams and come first in class.
but without a context that makes it clear that you are talking about the future, using future will seems better; by using future will in your sentence it is much clearer that you are talking about future time.
I call will in your sentence future will because the modal verb will has other uses than to talk about future time.