Generalized Bernstein property and gravitational strings in Born–Infeld theory