Not sure if this is related, but when I still had the VM with Mojave, I had compilation problems and was advised to do this:
- open /etc/fpc.cfg, activate the define "DisableCocoaModernForms" (last line), save
- in the Lazarus directory do a "make clean bigide"
- I still had issues in line "initIDECocoaConfigForms" in ide/main.pp --> commented it out, repeat "make clean bigide".
- Afterwards the IDE was usable.
- Go to "Tools" > "Build Lazarus with profile" to rebuild the IDE a last time, now with your installed components.