You're certainly not the first person to find a pregnancy scare, or the current pandemic, is introducing new strain into your relationship. And it can definitely be upsetting to feel like you don't care about your partner the way you used to.
Can you say a little more about what "not loving him anymore" feels like? Are you no longer interested in seeing or interacting with him? Does it feel like the "spark" is gone? Something else?