Project window sometimes closes when closing editor

Project window open on right monitor, mixer on left

Open an edit window, do some edits, close the edit window

Sometimes, but not always, the project window closes

Seems to happen at random, I can’t make it happen on demand