In Order of the Phoenix, Harry has to deal emotionally with the murder of Cedric and the return of Voldemort while working through the events he is experiencing at school. Harry's anger is a natural reaction to those events. He's not superhuman. He has been through a lot and his anger isn't permanent.