If you use Windows, it is always a good idea to have a Windows 11 or Windows 10 Bootable USB around ... housekeeping to make space for the second OS. It took around 20 minutes.
If you're having problems with your macOS installation or want to downgrade to an earlier version, using a bootable USB installer could ... and make sure to choose Mac OS Extended (Journaled ...