If you're unable to recover your Yahoo email using a verification code, follow these steps:
Go to Yahoo Sign-In Helper: Enter your Yahoo email address and select "I don’t have access to this phone" if you can’t receive the code.
Use Alternative Methods: If you’ve set up a recovery email address or security questions, Yahoo will prompt you to use them for verification.
Check Email or Phone Number: Ensure that your recovery email or phone number is correct, and check for any misspellings.
Contact Yahoo Support: If recovery attempts fail, reach out to Yahoo’s customer support for further help.
Read this post here https://hackmd.io/@hubinformation/recover-your-yahoo-email-without-verification-code