Hello @kautuk_sahni. Yeah this issue is resolved. I tried out all the solutions given by users and those were really insightful but unfortunately none of them seemed to resolve the issue.
I also am not sure what was exactly happening but I just tried to change the order of steps I generally follow while setting up an instance and it seemed to work for me.
So generally we follow the below process to setup an instance -
1. Get a jar and license file.
2. Initiate the instance with either command or double click.
3. Once the instance is on upload appropriate SP and restart instance.
4. Create a project/Deploy the code to instance.
I just swapped step3 and step4 i.e. I first deployed an already available project on the instance and then updated the SP.
Not sure if this has anything to do with my issue as I never used this before as a solution, whenever my instance would crash I would set it up again and it generally starts up fine.
If you believe this could actually resolve the issue, can you please help me with knowing how this works internally?