The brain is that smart that it is able to distinguish between physical vs. emotional pain as this research suggests.
The test? 2 tests included physical pain of exposing subjects to varying degrees of heat. And the other test included emotional pain such as what subjects experienced after being left by their partner.
The findings? The brain can differentiate between the 2.
An interesting study that’s worth the read if you want to know more about our inner workings.