Stress especially during exams as you said might trigger the pre-existing incompetencies within us . In case of borderline personality disorder they tend to think short and does not have a farsighted view of the consequences of acts. This might be aggravated during stressful times
Next Steps
So behavior therapy and sometimes medication will be useful
Health Tips
Best to consult a psychiatrist