@bigeno
I saw that error many times, especially on dual monitor system. It's caused somehow by the component palette resizing, but only when anchordocking is installed. The solution is to hide the component palette and replace with the component window(Ctrl+Alt+P). Lazarus looks like this(attachment), and it's stable: