It is a test from Allah, and Allah tests those whom he loves.
The Prophet (sallallaahu ‘alayhi wa sallam) said as narrated by Tirmidhi and Ibn Maajah :
‘The greater reward is with the greater trial or the greater the trial or difficulty of test or hardship is then the greater the reward. And when Allah loves a person He will test them. So he who will be pleased and then He will be pleased. He who is displeased, then He will be displeased.’(Sahaba’s name not clear) ‘The people as long as they are in good health, good shape, good condition they are covered. You don’t know their true character because they are in good situation, they are in good circumstance. As long as they are in a good circumstances they are covered. But if a trial or difficulty or a hardship comes upon them, then you will see their reality. They will go to their reality. The Mu’min will run to his Imaan, the Mu’min will run to his belief, the believer will run to his belief, his Imaan and the hypocrite will run to his hypocrisy, and the hypocrite will run to his hypocrisy. “Without being shaken, you don’t not know what comes to the top and what goes to the bottom. Without being shaken you don’t know a man from those who are faking; you won’t know women from those who are faking. You won’t know those who truly believe from those who don’t. Those who make a claim on their tongue and is not really in their hearts and from their limbs from those who are willing to die for this matter. This can only be shown by trials, the tribulations and tests and difficulties.”
It is also stated by Allah subhanallah watallah in surat al baqarah 2:155-156
“We will test you with something of fear, and hunger and loss of wealth, and souls and vegetation. And give glad tidings to those who have patience. Those who if in any difficulty or trial, or tribulation occurs to them or happens to them, they say: ‘Verily We are from Allah and to Allah we return.’ They are those who will receive prayers from their Lord and Mercy and it is those who are guided.”
And also 2:286
"Allah does not charge a soul except [with that within] its capacity. It will have [the consequence of] what [good] it has gained, and it will bear [the consequence of] what [evil] it has earned. "Our Lord, do not impose blame upon us if we have forgotten or erred. Our Lord, and lay not upon us a burden like that which You laid upon those before us. Our Lord, and burden us not with that which we have no ability to bear. And pardon us; and forgive us; and have mercy upon us. You are our protector, so give us victory over the disbelieving people."
InshAllah you will find solace and comfort in the words of Allah and his messenger Muhammad, peace be upon him.
I will leave you with a video link (if this is allowed) of Yasir Qahdi on an episode of "The deen show" addressing the topic with knowledge of the quran and authentic sunnah http://www.youtube.com/watch?v=iaW66-ZWD9k&app=desktop so that it can inshAllah benefit you.
May Allah make it easy for you. So you see, I have no doubt that you can pass this test because of what the quran has said about every soul not having been burdened with that which it cannot handle, and as muslims we believe this to be the verbatim word of the creator.
Barakullah Feekum ya akhi.