Is hitting/knocking on my bunion okay?

Hi, I have a swollen bunion on my left foot. Started developing that since I was 19 (I’m 26 now) cause my job required me to wear heels for Long hours.

I like hitting or knocking on my bunion cause it really feels good (odd as it sounds). But this morning I woke up feeling lingering pain on my bunion argh.

Not sure if the knocking/hitting is bad for the bunion..?

Any suggestion for pain relief?