MY BIGGEST FAILURE EVER

Hi. I am 3rd year student from Mechanical Engineering.
My 1st and 2nd year were awesome. No bad grades issue at all.
Then I stopped 1 year, because my family was just so messed up.
Now, I returned to college, as 3rd year, I failed 3 subjects this year. Simply because I cannot focus on my studies, because my family is so miserable, full of endless problems I cannot get use to.
My GPA is so so low, I plan on transferring but seems to be impossible, because of my GPA.
If I wont be admitted to any college, I want to die. Maybe, I’ll search a painless way of suicide.
DO NOT JUDGE ME..
I’ve been through a lot. All these time, I am barely breathing, I keep on trying to fight this life.
Why God?