How to I stop my UE5 project from crashing on startup?

I opened UE5 and before starting my project, I tried to open the terminal by pressing the ‘~’ key, but the terminal wasn’t opening. Do I need to be in the project in order to open it?