Film about curse

A girl with a curse will turn into evil or good at the age of 18 and can kill her lover, whom she met in school, as her cousin did before, and the movie ends with the hero forgetting her

a little off, but maybe “the haunting of molly hartley”?