This is a new computer which could be defective. But you cannot return it until the stores re-open. So, I can only suggest your do the following which will require an active and reasonably fast Internet connection.
Internet/Network Recovery of El Capitan or Later on a Clean Disk
If possible back up your files before proceeding.
- Restart the computer. Immediately, at or before the chime, hold down the (Command-Option-R) keys until a globe appears.
- The Utility Menu will appear in from 5-20 minutes. Be patient.
- Select Disk Utility and click on the Continue button.
- When Disk Utility loads select the target drive (out-dented entry w/type and size) from the side list.
- Click on the Erase button in Disk Utility's toolbar. A panel will drop down.
- Set the partition scheme to GUID.
- Set the Format type to APFS (SSDs, only if installing Mojave or Catalina ) or Mac OS Extended, (Journaled.)
- Click on the Apply button, then click on the Done button when it activates.
- Quit Disk Utility and return to the Utility Menu.
- Select Install OS X and click on the Continue button.
This erases and installs a fresh copy of macOS. Be sure to check it out thoroughly before restoring any files or apps. All applications must be 64-bit, only, because Catalina will only run 64-bit apps. If you have third-party software to install, then be sure to upgrade to the latest, compliant version. See App Compatibility Table - RoaringApps. It's good practice, given your recent problem, to install one app at a time and testing it before installing another app.