How can I balance emotional pain with the biblical command to rejoice in suffering?

Balancing emotional pain with rejoicing in suffering