TST: add test for #9107
test to ensure OutOfBoundsDatetime exception is raised when calling
pd.to_datetime with out-of-bounds date strings

As discussed briefly in #28367 

- [x] closes #9107 ? the issue is no longer truly reproducible, this PR adds a test around the new behaviour 
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
