die on

Upper Intermediate (B2) informal

When something stops working right when you need it, or someone dies while you are with them.

"My phone died on me right in the middle of getting directions."