Accurate analysis of load angle stability of the synchronous generator depends on considering mechanical parameters in addition to electrical parameters in synchronous generator modeling, which leads to increasing state-space variables and model complexity and ultimately reduces the accuracy and performance of conventional controllers. Therefore, an intelligent controller is required for the stable and reliable operation of the synchronous load angle generator. With this approach in this paper, first considering the electrical and mechanical parameters, a complete 14-order model of the synchronous generator is obtained. Then, a PID controller based on the Harris optimization algorithm is proposed to stabilize the load angle of the synchronous generator. The HHO optimization algorithm is a population-based optimization technique that optimizes PID controller coefficients. The effectiveness of the new HHO technique in optimizing the controller PID coefficients over known optimization techniques such as GA-PID and Modified GA-PID has been confirmed using simulation results. The simulation results show that the proposed controller has a higher performance in load angle stability compared to the sliding mode and fuzzy-PID controllers.