Phases

I have been dating my boyfriend for about 9 months now. I love him! But I go through phases where sometimes he annoys me to no end and I don’t even want him to touch me for a week or two. But then a few days later I’ll go through a 180 and be completely in love again. Has anyone experienced this or have any idea what this could be or advice for me? I know it hurts him and he can tell when I detach, I just wish I knew why. (Were both 23)