Ramadan is a time for spiritual reflection and can unearth a lot of fear and uncertainty. With everything going on, your mental health suffering is highly understandable-- remind yourself that it's normal to be effected by world news, take a breath, and find ways to ground yourself
I don't know your full situation, but I can deeply understand your struggle. As a student, I often felt really powerless and confused because I didn't have full agency of my life. I feel like your stress with world news, uni, family, religion, and honestly the strain of Ramadan are making it hard to see a solution. I will tell you now as someone who has survived to 35, there is never a singular solution. I don't say this to scare you, but to prepare you and to arm you with knowledge.
Reconciling your identity is a personal journey that can take place any time of your life. Being safe and away from your parents is a journey about practicalities and agency (which is hard to achieve as a student). I am not saying they are not tied, but I think it can help to try to separate the pieces of both where you can.
There is a lot of dialogue, especially among white queer people, about "being authentic and being open and coming out of the closet," but the truth is it's just much harder for us. Queer, people of color, Muslim-- it's harder. If you need to stay closeted, or quiet, about your queerness in order to survive, there's no shame in that
I honestly think for your safety, you should focus on finding a footing in your life and slowly work towards independence.
Not to give you another book to read, but the memoir "Hijab Butch Blues," by Lamya H follows the author, a South Asian lesbian who ends up studying in the USA, and her journey with her faith, identity, and family, who they are largely still closeted to
And lastly, you don't need permission from anyone but yourself, but if you need encouragement, just remember "there is no compulsion in religion," if you don't feel like a Muslim, then don't. It's ok if you need to practice it culturally for your safety, but Allah, or God, or whatever you end up believing in, will understand and encourage the path that is true to you
Best of luck, we are here for you