Sex advice..

So, my boyfriend was away for two months on a trip. When he came back we had sex, and I just started crying afterwards. I don’t know why I just felt very sad. Then I had a total panic attack. I thought it might have been because of some stuff I was dealing with while he was gone. Fast forward a couple days, we tried to have sex again and the same thing happened to me. Please help!! What does this mean?? Has anyone else experienced this?