Hi goodafternoon11,
It sounds like your verification code is being rejected when you sign with your Apple ID to use iCloud. We're glad you've joined us in Apple Support Communities. Let's see if this helps.
Follow the steps in the section, "If you're having trouble receiving verification codes, or your verification code is rejected" in If you can't connect or sign in to iCloud. Which will direct you to get a code directly from your device as shown in Get a verification code and sign in with two-factor authentication.
If the issue remains after following those steps, let us know what steps you had a chance to try from above.
We hope that helps with your question and take care!