So, for context, I went on a 4 day trip with my s/o (who's my fp) the other day. The first 2 days went wonderfully, but on the third I was suddenly just desperate for his attention. He can be a very independent person who needs time to himself and it was one of those days where he was more withdrawn. The whole day I became increasingly desperate for any kind of affection, and I had horrible intrusive thoughts the whole time and felt like bursting into tears every time he touched me. I tried to not let him notice but he did in the evening and we talked about things and he held me as we fell asleep and I felt a bit better. But then the next morning I woke up with that same desperation along with panic attacks and I had to slip away to deal with them and I tried to not let it show to him but it did and he felt bad. This escalated throughout the day and he felt forced to give me affection and we ended up leaving the trip on a bad note and I feel horrible. (Especially because he's leaving for a little while by the end of the month and the idea that I'm ruining our time together feels devastating)

He later told me how this bothered him and really affected him and I promised to try to be better but I don't know how. He says he doesn't want me to avoid showing him my emotions but I don't know what else I can do. Is there any other ways to deal with that desperation for attention and love to an unrealistic extent on my own? 

TL;dr: I'm looking for ways to deal with intense, unrealistic cravings for love and affection on my own.