Added error when sequence length is bigger than max_position_embeddings (#32156)
* Added error when sequence length is bigger than max_position_embeddings
* Fixed formatting
* Fixed bug
* Changed copies to match
* Fixed bug
* Applied suggestions
* Removed redundant code
* Fixed bugs
* Bug fix
* Bug fix
* Added requested Changes
* Fixed bug
* Fixed unwanted change
* Fixed unwanated changes
* Fixed formatting