This happened to me while resetting the account password. It asked me to verify, buy verification failed all the times. I just logged in from samsung internet browser and at the same time tried logging in from phone’s setting menu, that worked after an hour.
Buy s23ultra when s24 launched. My suggestion is don’t buy any other older versions.