Blow up in (someone’s) face

To be ruined while one is working on it (a plan or project etc).

The secret plan blew up in our face when we discovered that everybody already knew about it.

To explode suddenly.

The bomb blew up in the man’s face.