Term: broken record syndrome
Example: she couldn't stop thinking about the boy she liked, so she came to the conclusion that she had broken record syndrome
Definition: when you can't stop thinking about the same thing