When things go wrong, you might have a tendency to exaggerate the consequences and imagine that the results will be disastrous. What’s the worst/best/most likely that can happen? Will this matter in five years? Is there anything good about the situation, or a way to fix it?
Problems are a normal part of life, and we usually feel better when we do something to resolve them rather than just dwell on them. If you can’t solve the problem, change the way you think about it. You can practice acceptance and move on with life in a positive way.