To keep your rocket stable during launch, focus on proper weight distribution. The Center of Mass (CoM) should be slightly ahead of the Center of Thrust, and your engines should be aligned with the CoM. Adding fins to the lower part of your rocket can also improve stability, especially during atmospheric flight.