Changing the editor theme fails when there are active compiler errors

When there are compiler errors in the project, attempting to change the theme fails. (At least on Mac) Unity version 2022.3.12f1
It works again after the errors have been resolved. WEIRD.