Hello,
I see you want to disable two-factor authentication. For some background I suggest you read the support article: "Two-factor authentication for Apple ID" - Two-factor authentication for Apple Account - Apple Support
When reading that article some people (including some providing advice on this forum who miss the part about some people being able to disable the feature and just say you cannot) have difficulty determining if a person can or cannot disable two factor authentication on their accounts. Here's the actual situation:
Several years ago Apple transitioned to using two-factor authentication for additional account security. Accounts created since that time automatically use two-factor authentication and this indeed cannot be disabled.
Some people have older accounts from before two-factor authentication was mandatory on new accounts. Apple encourages those users to transition to two-factor authentication when signing in on their accounts because without it "your account is less secure and you can't use features that require a higher level of security." However, the support article also says in tiny, light-grey font: "If you updated to two-factor authentication inadvertently, you can turn it off within two weeks of enrollment." In other words if you have an older account, recently activated two factor authentication ("inadvertently" or not), and you're within the two week period for turning it off again, you should check for an email from Apple for a way to do this. If you don't see one about this, look in your junk mail folder.
Presuming you can no longer turn off 2FA, then try other ways to get a code, based on: Get a verification code and sign in with two-factor authentication - Apple Support
A code is sent first to your trusted devices automatically. If you have a trusted device running iOS 9 and later, OS X El Capitan and later, iPadOS 13 and later, or watchOS 6 and later, the verification code is displayed automatically on your trusted devices.
If you don’t have a trusted device handy, you can choose to have a verification code sent to your trusted phone number as a text message or phone call.
1. Select “Didn’t Get a Code?” or “Can’t get to your devices?” on the verification code screen.
2. Choose to have the code sent to your trusted phone number.
3. You'll get a text message or phone call from Apple with your verification code. This text message might include an additional domain validation line. This line includes the @ symbol, the website name, and your code (for example: @icloud.com #123456 %apple.com).
4. Enter the code on your other device to complete sign in.
If you can get a code one of those ways, add more ways to help you in the future. To see, add, or change your trusted phone numbers use one of these methods:
● On your iPhone, iPad, or iPod touch: Go to Settings > your name > Sign-In & Security. Tap Two-Factor Authentication, tap Edit (above the list of trusted phone numbers), then enter your device passcode when prompted. Add or remove the number, then tap Done.
● On a Mac computer choose Apple menu > System Settings (or System Preferences), then click your name (or Apple ID). Click Sign-In & Security, then add or remove a trusted phone number.
● Using a web browser:
1) Go to https://account.apple.com and sign in.
2) Follow Account Security options until you find one letting you change trusted numbers,
3) Click "+" to add a new number (you may be required to verify this number).
4) If you wish to remove an old number, click "-" next to the number.
If you can’t sign in, reset your password, or receive verification codes, you can request account recovery to regain access to your account [ How to use account recovery when you can’t reset your Apple Account password - Apple Support ]. Account recovery might take a few days or longer, depending on the specific account information you can provide to verify your identity.