Buy a product called “Quit” and use it. Worked for mine when stress caused chewing. And it always has worked in a few days, like when we move to a new barn, etc.
If it doesn’t work, then scope for ulcers.
A bored or stressed horse will start chewing. I make sure mine have lots of hay so they won’t get too bored.