I ran into this once and could not find a documented answer anywhere. I shanked a putt, and while my character was still swinging in frustration I started mashing buttons — a message popped up about my club breaking. A friend playing alongside me hit a button and the message vanished.
Since nothing online covers it, it may be an undocumented animation or a rare glitch rather than a real mechanic. If anyone has confirmed what triggers it, that would settle the question.