The present study investigates the effect of exit geometry of the main stage in a model combustor with a dual-swirl layout. In practical combustors, the main stage has much larger airflow than the pilot stage, therefore dominating the aerodynamics of the global flame. In this paper, six different geometries of the main stage exit are designed to cover the common styles in engineering applications. Their effects on thermoacoustic instability are examined experimentally. Sudden transitions from the attached flame to the blurred flame are found in most of the exit geometries, excluding the Outer-rough case. This transition of flame shape triggers the onset of strong thermoacoustic oscillation, leading to a jump of the amplitude of pressure fluctuation. Frequency drop and the acoustic mode shift are also found at the transition point. Flame dynamics are further analyzed using the Dynamic Mode Decomposition method. It is concluded that the Outer-rough case has the best thermoacoustic stability within the tested range. The mechanisms of the observed phenomena are analyzed by measuring the reacting flow fields. It is found that the increased roughness of the outer wall can prevent the flame shape transition and the onset of thermoacoustic instability, possibly due to the weakened vortex structures and strain rate along with the outer shear layer.