as salam alaikum
thinking about the greatness and power of Allah removes despair in His mercy. Allah is far greater than any deficiencies we may attribute to Him; He is Self-Sufficient and He does not need anything/anyone that may cause Him to oppress His devout servants.
Sometimes we face difficult situations with wider meanings than the ones we ascribed to them but if we believe in Him and aim towards our final and everlasting abode, we will be satisfied by the fact that all troubles are temporary and they soon will end insh'Allah.
Personal attitude and positively moving forward even in harsh circumstances are key-factors to see Allah's mercy in action in the wider picture.
With prayers for your success.