Raised specific types of exceptions on distilbert model 
Co-author: Batese @batese2001
Local test file: ![testDistilbert](https://user-images.githubusercontent.com/35699839/203268440-1b6a01e1-bc25-4a71-a59b-3af64175fe53.png)


_The documentation is not available anymore as the PR was closed or merged._<|||||>I made a different PR with the same request here: https://github.com/huggingface/transformers/pull/20375
