If you accidentally cut the quick, applying styptic powder or cornstarch to the nail can help to stop the bleeding. It's important to stay calm and reassure your dog, as they may become stressed or frightened.