narrowly avoid

Translations
едва избежать
They narrowly avoid a major accident.
Они едва избежали серьезной аварии.