It's now April 2024, I've just got a brand new laptop with Dropbox installed, and get the same issue.
It sent me two security codes, I typed them in perfectly (within 10-15 seconds), and it rejected both.
I also loathe that Dropbox wants access to my Contacts, for me to login using Google. They don't even make it an option.