I am 27 year old and depressed.

Hii, I am 27 year old male. Have completed Btech when I was 23 years old. Did preparation for Gate exam but soon I realised that I will get nothing here. Then started preparing for ssc CGL exam. It took two years to prepare it thoroughly. I always have been an average guy in academics but I really gave my 100% in these two years. I cleared prelims , then appeared for mains and missed it by 2 marks in UR catogery. Gave another chance this time in 2024 ,cleared prelims and in my mains there was server issue throughout my exam and I spoiled it badly with 306 marks. I can't go to private sector as I have now a huge gap in my degree. My father is physics lecturer so he doesn't let me go into small jobs like group C or D due to his social status. I am stucked, lost everything friends, social life, started smoking, anxiety, masturbation, rude behaviour, health and what not. My family even feel embarrassed introduce me to everyone as my all cousins are well settled. They just give me examples of everyone around me. Sometimes life really sucks.