You’ll need to use a 3rd party application like VMware .
https://www.vmware.com/products/fusion.html
or paralells or some other virtualization software you can google and compare. Some are free, but most are not and you still need to buy windows (you can actually run windows for free legally, but some features ads blocked until you pay, there are some others ways to get windows 11 for free legally, you need to look those up yourself and at your own risk)
running windows on the Mac should do any harm to the Mac because it’s all sand-boxed , for instance; you can still get an infection on the windows instance but it’s limited to the windows virtualized instance.
as for the M1 it does not support running windows natively like the intel, so bootcamp is not an option. You will need to run windows on top of macOS but it will be in its own partition separate from the macOS install. The other features are dependent on the program you use. Additionally the ARM architecture was not designed to run windows so it may be a little sluggish. The Intel Macs were perfect to windows because windows uses that CPUs architecture perfectly, but that was in Microsoft’s wheelhouse.