One tip that might help is to curl your thumb under the rest of your fingers. This allows your nails to rest on your palm and protects the thumbnail. Some people use gloves to sleep and even socks!