It could also be due to some external factors. Maybe there are threats from dark forces that he doesn't want to involve Lily in. If he is getting deeper into the dark arts or some dangerous situations, he might choose to give up on her to protect her from the potential harm that could come her way because of his associations.
Perhaps he simply lost his creative inspiration. Fanfiction writing often requires a constant flow of new ideas, and if he's been through a lot of stress or has had some personal issues, like his complex relationship with Lily still haunting him, it could dry up his well of creativity.
One reason could be jealousy. Maybe Snape gets jealous of Lily's other relationships or her popularity at Hogwarts. Another could be a fundamental difference in their beliefs or values that grows over time into hatred.
It could be that in fanfiction, Snape has been through some additional trauma or experiences that change his perception of Lily. For instance, if he discovers something about Lily that he doesn't like, such as her involvement in some secret or her having a different side to her character that he finds unappealing. This would cause him to dislike her, as opposed to his more nuanced feelings in the original story.
One reason could be jealousy. If in the fanfiction Snape is getting more attention or praise from the wizarding world than Lily, she might start to dislike him. Another reason could be that Snape has a different view on blood purity, and Lily strongly disagrees with him, which leads to her hatred.
The story might take a more somber turn. Snape could become more withdrawn and focus solely on his own pursuits. For instance, he may throw himself into his potions research even more intensely.
One possible reason could be that he realizes his feelings are unrequited. In the fanfiction, perhaps Lily has made it clear she doesn't have the same feelings for James, so he gives up. Another reason might be external factors. For example, there could be some sort of danger or situation that makes James think he needs to step back from Lily for her own good.
It might be because Snape said or did something hurtful to Lily's friends. Lily is a loyal person, and if Snape insulted or harmed her friends in some way, she would be furious enough to send a Howler. In the context of fanfiction, there could be a new character introduced who Snape treats badly, and this angers Lily.
One reason could be jealousy. Snape might be jealous of James' popularity and charm. James, on the other hand, could be jealous of Snape's close friendship with Lily in their early years. Another reason is their different personalities. James was outgoing and bold, while Snape was more introverted and brooding. Lily might be attracted to different aspects of each of them, which could lead to the fight as they both compete for her attention.
Perhaps in the fanfiction, James is seen as more accepting of Lily's friends and her social circle. Snape, on the other hand, might be associated with a darker crowd or have some beliefs that Lily doesn't agree with. For example, if Snape is too involved with the Dark Arts in the fanfiction, it could be a turn - off for Lily.
One possible reason could be that Snape suspects Harry of something dangerous or against the school rules. Maybe he thinks Harry is involved in some secret Dark Arts activities and ties him up to prevent him from causing further trouble or escaping while he investigates.