If he is only in a stall, it is like you in one room only everyday with just food and water.
— Putting a salt lick in there will help. Cause when a horse starts to lick on something it makes there brain slow down and think.
— Turning him out in a pasture for a while.
— It may be cause he is bored and doesn’t like a stall.
Hope this helps!