This nail biting shows his nervousness. He may be feeling anxiety
or boredom. Talk to him with love and compassionately. Be polite but stern with him. Make him understand how you love him and how much you care about him. Listen to him with patience. Enquire from his school also.