These urges usually don’t last very long, so you’ll want to distract yourself until they pass.
Talk with someone, go for a walk, drink water, or give yourself a task to work on.
If stress is a trigger, find healthy ways to calm down. You could exercise, read a book, or meditate. If you're not active now, check in with your doctor before you start working out.