Palette editor (F4) starts open in new file after previous use

When I use the palette editor with the F4 key (also closing with F4), it starts open automatically when I load another file or create a new one.

The error eventually stops after a few occurrences, but it returns if I use the editor with F4 again.

v1.3.5-x64 Steam
Windows 11