No. If you entered South Korea with a valid K-ETA, you do not have to leave the country simply because your K-ETA expires during your stay.
The validity period of your K-ETA and the length of time you are allowed to stay in South Korea are separate.
K-ETA Validity Period
A K-ETA is generally valid for 3 years from the date of approval or until your passport expires, whichever comes first. It allows multiple visits to South Korea during its validity period.
Visa-Free Period of Stay
The length of time you can stay in South Korea depends on the visa-free entry rules for your nationality and the period of stay granted by immigration officers upon arrival.
Even if your K-ETA expires while you are in South Korea, you can legally remain in the country until your authorized period of stay ends.
However, overstaying your permitted period may result in fines or restrictions on future entry into South Korea.
Make sure to leave the country before your authorized stay expires.