Are both options correct? Which are wrong?
I was excited to be given the chance. / I was excited on being given the chance.
I was afraid to tell him, / I was afraid of telling him.
I was annoyed to hear he was fired. / I was annoyed on hearing he was fired.
I was excited on being given the chance.
I would use at.
With the "on" construction, I would expect to hear that part of the sentence at the beginning in order for it to sound natural.
On hearing the news, I became very excited.
On hearing that he had been fired, I became very annoyed.