I said no to doing a sexual act because I was not prepared emotionally/mentally to take it on, and if I did I would have been upset with myself

My partner at the time lied to me about something then apologised (he didn't delete a dating app when I specifically said that needs to be done in order to be together)

He wanted a hand job and I didn't want to, I wasn't prepared mentally after being lied to I have satisfied him 98% of the time and have made him feel special, and this was one of the few times I didn't want to for my own well-being and safety

He said that I was punishing him but I wasn't at all! I wasn't up for it emotionally and prepared to be doing that

He then left and I was in tears thinking why was this happening?

(We are no longer together)

How do I gain my self respect? How should one look at this situation? What advice can you give me?