Fetching details from the dictionary...
repeating a year (at school); staying in the same class for another year
単位不足で留年になった。
I had to repeat due to lack of credits.
留年だけは避けたい。
I want to avoid repeating a year.
留年して友達と離れた。
I got separated from friends by repeating.