[BE][EZ] Use `dyspatch_sync_with_rethrow` in searchsorted (#119646)
For the proper exception handling, otherwise raising C++ exception inside dispatch block will crash the app (discovered while enabling more BFloat16 ops)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/119646
Approved by: https://github.com/Skylion007