When in doubt, it is important to consult a psychiatrist who will help you to confirm the diagnosis.
You should take a mood stabilizing medication, prescribed by a doctor, on a regular and constant basis to stabilize your mood and prevent the different phases from interfering with your studies and your life projects.
Psychotherapy can also help identify risks and develop strategies to cope with them.