If you are getting good marks, it is proof of you actually studying well. It is likely that you are having anxiety disorder which is making you unduly worried. In case Psychotherapy has failed, medications or another form of Psychotherapy can work.
Next Steps
Consult a Psychiatrist for proper diagnosis and treatment