Advice on how to stop biting the insides of my cheeks?

Ever since I was little I’ve always chewed the insides of my cheeks to shreds. It’s partially stimming but also partially I don’t like the texture of the inside of my cheeks being so rough that I chew on them to try get them to be smooth again. Logically I know this is a never ending cycle as chewing them does NOT get them smooth it just makes them worse.

I do it so much that it causes me a lot of jaw pain and I need to somehow stop doing it but I can’t because most of the time I don’t realize I’m doing it! I have other stims that I do like bouncing my legs and playing with my hair, but this one is physically hurting me.

Has anyone successfully stopped or swapped a stim that was detrimental to their health?