Hi adam peitz
It sounds like the issue is occurring during Microsoft account creation rather than with Minecraft itself. Repeated verification attempts can sometimes trigger temporary security blocks, which may explain the invalid code and "suspicious activity" messages.
I'd suggest waiting until the temporary limit resets, then trying a single account creation attempt using only the most recent verification code received. If the issue continues, you'll likely need assistance from Microsoft Account Support, as forum members cannot remove account creation restrictions.
Since this is a public forum, please do not post any email addresses, verification codes, or other personal information.
You can contact support through: Microsoft Support and choose Microsoft Account > Account Creation/Sign-in for further assistance.