"We're not broken, just bent. We can learn to love again."
Do you think you can talk to him in a quieter moment, perhaps tomorrow morning or afternoon? Explain that even if it's a sleepy hug, it means a lot to you that he does it, as a sign of support and love when you're having a rough time? I don't think a hug is too much to ask.
I agree with silver.
Try talking to him and explaining that his bipolar cannot be that "automatic get out" whenever he doesn't want to do something you have asked of him.
Explain how triggery it made you feel. His reaction to your needs will be a huge tell too.
But if he's been silly enough not to look after his bloodsugar etc people can get really stroppy.
However, it's not fair. I know there's a lot of med reminder stuff on the market (would link you but don't want to advertise other products). That apparently really help medication compliance.