Yes, my personal opinion on your question is, yes, this is a form of self harm
And I can understand that you say it brings you some sense of relief. Sometimes when the pain within us is too much to handle it brings a few minutes of relief by distracting us from what is causing our heart so much pain by deflecting it on the outside. All of which is temporary, unfortunately