Hey OP,
When I was going through my issues I stopped going to bed at the same time as my DP. I'm a night owl and she's really not so 3 - 4 times a week I'd make the effort to go to bed at the same time as she did, just so we'd have an opporunity to have sex.
I didn't want sex so I just stopped it. I wasn't directly trying to avoid my DP, it was just my usual feedback loop going "Do I fancy a shag tonight, no, bung a Star Trek on the TV instead". I don't think I was even conciously aware of it, let alone deliberately trying to avoid her. I hadn't told my DP that I was dealing with some issues, so it certainly wasn't something that I discussed with her.
However, what was a tiny part of the overall problem for me, was absolutely huge for my DP. I suppose for her that was "couples time", even in the probably 50% of cases when there was no sex, we just hugged and talked and fell asleep. I felt that we'd just spent a couple of hours together on the sofa, so half an hour doing the same in bed wasn't an issue for me, but for her it was massive.
So she stewed, and worried, and started feeling resentful, for about 2 months until she finally exploded at me, which led to a far bigger problem than if she'd just asked 2 weeks in "Why have you stopped coming to bed"
A mate of mine got in a ton of shit with his missus a few years ago when she realised he only said "I love you" post shag. For her it was disrespectful, a sign that he only wanted her for sex. For him, he always loved her, however the post coital blissed out period was when he felt comfortable saying it. Again, she sat on it for months, until she couldn't deal with it any more and left him. It took them six months to work out their issues and get back together, and now he's aware of the behavior he says the words more often.
What I'm trying to say is that communication is going to be key to trying to get through this. Libido is a powerful part of a persons psyche, and loss of it will lead to behavior changes that your husband may not even be aware of. Talk to him, ask him why these things have changed, try not to be judgey or try and pressure him into changing them. He may not have the answers for you straight away, he may not even be aware that he's doing certain stuff. But it'll make him think about things, and that can only help.
I'm going to gracefully exit this thread now as I think I'm getting dangerously close to coming across as "mansplainy". Good luck OP, I hope your husband manages to sort his shit out and that you both get a happy outcome.