Sometimes UE5 can be stuck in a state where the editor will not launch correct. In these cases, you'll need to run something along the lines of the following.
/opt/unreal-engine/Engine/Build/BatchFiles/Linux/Build.sh %PROJECT_NAME% Linux Development -project="/path/to/project/PROJECT_NAME.uproject" -waitmutex
/opt/unreal-engine/Engine/Build/BatchFiles/Linux/Build.sh %PROJECT_NAME%Editor Linux Development -project="/path/to/project/PROJECT_NAME.uproject" -waitmutex