come to grief

[come to grief] {v. phr.} To have a bad accident or disappointment; meet trouble or ruin; end badly; wreck; fail.

Bill came to grief learning to drive a car.

Nick's hopes for a new house came to grief when the house he was building burned down.

The fishing boat came to grief off Cape Cod.