We don’t have all the answers to our troubles. G-d made the world in a way in which there is a lot of concealment and mystery. But what we do know is that everything He does is for our own good. This world is a preparation for the next world, it is here and only here where we have the opportunity to rise above our nature. Whatever hardship you are living at this moment is only there so you can choose to do the right thing (G-dly option) and earn reward for the world to come.
Shavuah Tov!!! Have a blessed week