You may be under stress.
Common causes are high expectations from parents for good marks, stress of study and balancing life.
Find out the reason for stress.
If you can not change the reason then leave it on god.
If you can then change it
Next Steps
you can take anti anxiety pills with doctor prescription to regulate sleep patterns for few days
mediation will help you
and if anything bothering you discuss with your parents