I need some advice about my relationship!!!

So me and my boyfriend have been together for a few years now. It hasn’t been perfect it’s been kind of rocky. We are currently expecting our first child together any day now. He has constantly accused me of things in the past that aren’t true, just his insecurities. Things have gotten a lot better between us but I feel that I’m emotionally detached to him now because of the constant accusations in the past. He gets the feeling that I don’t care anymore and I do. He is really hurt by this. I love him and I do feel that this is the man I want to be with for the rest of my life. I have told him that after not being trusted and accused for so long it’s like I’m not emotionally there anymore.

Has anyone else been through this where you get emotionally detached from your partner? And how did you get that spark back?