There could be several reasons why your brand new MacBook M2 is randomly restarting and bringing you to the options screen. Here are a few possible causes:
1. Software issues: It's possible that your MacBook is experiencing software-related issues that are causing it to crash and restart. This could be due to a corrupted operating system or a malfunctioning app or driver. To fix software related issues; Check for pending updates, Boot Mac in safe mode, Reset PRAM/NVRAM/SMC, Repair Mac drive using Disk utility, Clean your disk or Reinstall MacOS.
2. Hardware issues: Another possibility is that there is a hardware issue with your MacBook. This could be due to a faulty component, such as a failing hard drive, bad RAM, or a malfunctioning power supply.
3. Overheating: If your MacBook is overheating, it could be causing it to shut down and restart. This could be due to a clogged or damaged cooling system, or it could be due to the MacBook being used in a hot environment.
4. Malware or viruses: It's possible that your MacBook has been infected with malware or a virus, which could be causing it to behave erratically.
Further, to diagnose and resolve the issue, I would recommend that you take your MacBook to an authorized service provider or an Apple store for further assistance. They will be able to run diagnostic tests and identify the root cause of the issue, and recommend the appropriate solution.