Heartbreak is a learnable reaction in Animal Crossing: New Horizons.
This reaction can only be learned from villagers with the Smug personality type.