Before we get started with the steps, first try and reinstall Minecraft to ensure there are no corrupt files causing issues. Make sure you save your worlds properly so you don't lose any progress.
There’s a multitude of things that can cause Minecraft Exit Code 1 to appear. This error indicates a misconfigured Java Runtime, and the culprit is usually a mod ...