I would like to ask that if one recites a second surah in the 3rd rakaah should he perform sajdah as sahw or repeat the prayer

Yes perform sajdatay as-sahw based on obligatory precaution