No Sex

I haven't had sex with my husband for 9 months he blames says I'm mean hes bipolar 1. He doesnt go out and was told he has low testosterone. Am I really the problem? Idk I've given him time to explain to me the truth. I feel ashamed of myself my self esteem is low I feel like he doesnt want me anymore he told resentment towards me. Please help me