Each of us goes through a bad patch. It is the law of nature. No one can escape that. Because every difficult time is a test for us. We are being tested. We can come out of these tough times, because tough times don't last.
When the time is tough, don't withdraw, and don't panic. Wear the clothes of a fighter, and solve the problem. A fighter fights his luck, to improve his future. Because he knows tough times don't last.
Also, when a tough time comes accept it as part of your fate, destiny. This resignation will make you complaint less. You will feel more at peace.
So, there are 2 things - as far as actions go, solve the problem. And as far as the mind goes, accept it with resignation. This dual thought cum action process will ensure you come out of your problem with grace.
Tough times don't last.