suggests that
even a serious setback may bring some unexpected benefit or opportunity.
similar
Every cloud has a silver lining.
When even a loss might have some advantage, it can result in some benefit to us., the saying “No great loss without some small gain” is appropriate.