Wisdom and grief often go together

Ecclesiastes 1:18

For in much wisdom is much grief; and he who increases knowledge increases sorrow.

from Grief topic