This error is generated when unattended server mode is enabled with SYS(2335). If possible, remove the code from your server that creates the modal state that generates this error.