Answered in another thread: https://stackoverflow.com/a/76528793/17074146
Setting "Workbench > Editor: Double Click Tab To Toggle Editor Group Sizes" (workbench.editor.doubleClickTabToToggleEditorGroupSizes) to "off" should solve this issue.