Hi gg_ - I cannot think what it must be like for you at the moment and you are doing all the right things by talking to your parents and teachers etc. I am sure your teachers will work out ways for you to learn the material and participate in school related activities.
RT talked about having some spaces where you can let out the feelings you have.
I hope you you do not mind me sharing a little story while you have these feelings... there is a lady at church who sings in the choir and is blind. She had such a wondering singing voice. Something that I did not know about her until last year is that she also has a PhD.
Some door may close, others may open. You will still be the same person and as you take this journey remember there are people that will support and care for you along the way, including the people here.