im 17m and i need to do around 4 hours studying a day. Sometimes this takes over my gym time and i won't have enough time for gym?

Whats more important studying or lifting?

if i don't lift i get depressed af and i get angry very quickly People constantly disrespect me and i think that the only way for me to get respect is by lifitng and being the biggest swollest mf i can be

can someone please give me advice on how to deal with this? i have no friends at school and i get very depressed and going to the gym allows me to escape from reality in that im improving myself; its almost like a 'safe space' for me from reality.

i have NOTHING in comman with anyone and the gym is the only place where i have a comman goal with someone else and where i 'fit' in.