Enhancing Photovoltaic Inverter Reliability Through Advanced Hardware Protection and Simulation Techniques