Use the following guide to disable having to connect your PC with either M365 or a Domain while installing Windows 11.

Disconnect Network
Disconnect your network wire or Wi-Fi, and reboot your PC into the Windows 11 Installer
Command Prompt
Hit ‘Shift+F10’ on your keyboard to open a Command Prompt Window > Type ‘OOBE\BypassNRO’ > Enter.


Reboot
When you hit ‘Enter” (above) the PC will automatically reboot.
Network Screen
Once you get back to the Network Screen, you will now have the option – ‘I don’t have internet’.
NOTE: You may be prompted to Select ‘Limited Experience’ on another screen.

Continue Setup
Setup should now continue without prompting for M365 or Domain.
Don’t forget to reconnect your network!
Let me know if this helps (or if you have further questions) in the comments below.