Repro steps:
1. Create a new 2D Core project
2. Open the Tile Palette window
3. Click “Create New Palette” and save it
4. Select the New Palette drop-down menu and click “Create New Palette”
5. Repeat Step 4 about 10-40 times
Expected result: “Create New Palette” option window opens
Actual result: Unity hangs
Reproducible with: 2020.3.42f1, 2021.3.15f1, 2022.1.23f1, 2022.2.0b16, 2023.1.0a23
Reproduced on: Ubuntu 20.04.5 LTS