I hate the feeling of rough bitten nails which became an unproductive distraction in itself.
Now, I clip instead. My nail grooming has become on point.
If it's your home office or you have a door its okay :)
I have no feeling some problem is out of my reach but still the nail biting happens.
Ever since I've started standing instead of sitting, walking around has decreased my nail biting.
Good cushioned footwear and insoles is a must to limit the damage at that range.
Anyway: walking is absolutely essential to me. I do most of my work outside, walking and thinking.
Your mileage may vary (apologies for the pun) but if you can, walk.
I'd imagine that spending the few hours it takes to walk 10-20 miles sitting instead would be far worse to long term health.