Follow this guide:
https://ghacks.net/2023/01/26/how-to-bypass-the-microsoft-account-requirement-during-windows-setup/
The easy method is to use no@thankyou.com and any password as the user.
Use an empty password while creating a local user, then set a password after the computer is done setting up.