Shaking during sex

I had a miscarriage on the 14th, so I stopped bleeding and we had sex again. But during sex, I was shaking for some reason I felt comfortable but I was shaking, and I don’t know why we’ve been together for 2 years, does anyone know? I also have depression, anxiety and ptsd, too. But if never effected me during sex.