MacOS has a recover mode where it downloads the installer for you . Look up the key combo you have to hold when it starts