Psychiatry

A 20 year old female has thoughts of cutting her fingers, and imagines doing it but never actually does it. She says she is not having any guilt of having such thought. And also says the thoughts are distressing her and she is unable to control them. The thoughts vanish either by ending with a seizure or automatically subside on their own. Which of the following is the likely cause?