TEST: dropna() doesn't fall into infinite loop
- [x] closes #50708
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).

I have checked that the problem was reproducible in 1.5.2 and is not reproducible on main. The added test `test_constructor_large_size_frame` checks if an infinite loop occurs.
Hi @MarcoGorelli. Could you please take a look at the test. should be good (pre-commit isort failure is unrelated, and solved in https://github.com/pandas-dev/pandas/pull/51048 - I just hit the "update branch" button to merge upstream/main and restart it just to be sure) Thank you, @MarcoGorelli for reviewing the PR. This pull request is stale because it has been open for thirty days with no activity. Please [update](https://pandas.pydata.org/pandas-docs/stable/development/contributing.html#updating-your-pull-request) and respond to this comment if you're still interested in working on this. Hi @MarcoGorelli. I merged upstream/main into my branch. Could you please have a look? thanks - looks like the test is failing now
```
FAILED pandas/tests/frame/test_constructors.py::TestDataFrameConstructors::test_constructor_large_size_frame - pandas.tests.frame.test_constructors.TestDataFrameConstructors.test_constructor_large_size_frame.<locals>.TimeoutError: Timer expired
```

it might be worth doing a dive into setting what caused the timeout in the first place - I could take a look next week Looks like this PR has stalled so closing to clear the queue thank you, @mroeschke, I should have closed this pr myself earlier.