Have a near miss

To nearly crash or collide with something.

The two trucks had a near miss on the highway this morning.