Hi k-1380,
Thanks for your question in Apple Support Communities, we see that you're getting text messages with verification codes and are concerned about them.
While those verification codes may or may not be valid, it is possible that Apple will send a verification code via text or phone call, as outlined in Get a verification code and sign in with two-factor authentication. If you are getting codes and have not signed in with a device, someone may be trying to access your account, and this second factor has helped protect you. You should review your account details at appleid.apple.com, and you may need to change your password if it is a weak password or is a password you’ve shared across other services.
In addition to a verification code being sent with a sign in, a verification code may be sent as part of Account Recovery. You can check out How to use account recovery when you can’t reset your Apple ID password for more information.
Cheers!