[MPS] Add dot input check (#100099)
Fixes #99564
<!--
copilot:summary
-->
### <samp>🤖 Generated by Copilot at c21d056</samp>
This pull request adds input validation and error handling tests for the `dot` and `vdot` operations in the `mps` namespace, using a new helper function and a new test function. This enhances the MPS backend and the testing framework for these operations.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/100099
Approved by: https://github.com/albanD, https://github.com/malfet