I miscarried and he masturbated. 😡

So I had a miscarriage and the doctor told me no sex for two weeks. I was in so much pain I didn't want it anyway. I thought me and my partner would both wait for two weeks and when we finally had sex it would be special. So I nonchalantly told him the date we could have sex again and teasingly asked "you think you can wait that long" and he literally gulped.

I knew immediately he had cum since the miscarriage started and it turned out while I was laying in bed waiting for our dead baby to come out he was getting himself off in the bathroom. He had the audacity to tell me he had to because he was aching. Aching? you want to talk about aching.i'm so mad words can't describe. He cried and knew he screwed up...I can't help but worry I'm over reacting. Is this a normal response? Whose wrong??