Harry could also go into a state of shock and disbelief. He loves Ginny deeply, and to find out she's cheating would shatter his world. He might start to question everything about their relationship, like all the memories they've shared together. And he could become very withdrawn, not wanting to talk to anyone, even his closest friends like Ron and Hermione. He would need time to process his emotions and figure out what to do next.
At the very beginning, he might act impulsively. For example, he could immediately break up with Ginny without even listening to her explanation. But as time passes, he might start to have second thoughts. He might wonder if there were signs he missed before, or if there's a chance that things could be different. This could lead to a complex emotional journey for Harry as he tries to come to terms with what he's discovered.
In such a fanfic, perhaps Ginny has been feeling neglected by Harry due to his constant focus on fighting dark forces or some other important matters. So she starts to seek comfort in someone else. When Harry finds out, he first feels angry and betrayed. But then he realizes that he also had a part to play in their relationship going sour. He could then try to win Ginny back or decide to move on, depending on how the author wants to develop the story.
Harry might immediately rush to her side and comfort her. He could put his arm around her and ask her what's wrong in a gentle voice.
Hermione would probably be super helpful. She'd offer all kinds of advice on everything from pregnancy care in the wizarding world to setting up a nursery with magic. Ron would be a bit more awkward at first, but he'd still be excited. He might joke around a bit to lighten the mood. Neville would be very kind and bring over some of his own home - grown magical plants that could be useful during the pregnancy, like plants that have calming properties or ones that can help with minor ailments.
On the other hand, some fans might be interested in seeing a different and more complex side of the characters. They could view it as an exploration of what could happen if the characters were faced with different challenges and temptations. However, there would likely be a lot of debate among fans, with some firmly against it and others more open - minded.
He might be amused. Fanfiction can be quite creative and sometimes funny, so he could just laugh it off and think it's an interesting take on the characters.
He'd probably be furious at first. He has a strong sense of loyalty and would feel deeply hurt by Ginny's betrayal.
Ginny might be overjoyed. She could blush deeply and then give Harry a big hug, telling him she feels the same way.
Many of Harry's friends would be deeply saddened. Hermione would try to mediate and see if there was a way to save the marriage. Ron, being Ginny's brother, would be in a difficult position, torn between supporting his sister and his best friend. The younger generation who looked up to Harry and Ginny's relationship might feel disillusioned.
She might confront Harry directly. In the heat of the moment, she could burst out with her suspicions and demand an explanation. For example, she might say, 'Harry, I've noticed you've been acting strange around that girl. Are you cheating on me?'
Harry would probably be heartbroken. He trusts Ginny deeply, so her betrayal would be a huge shock. He might initially be in denial, not wanting to believe that Ginny could do such a thing.