Handling Unexpected Alert Present Exception"

Hi, the website I am trying to shows a prompt : This account is currently being used on another device. Click ‘Ok’ to immediately end any existing sessions and log in on this computer.

The code keep crashing : UnexpectedAlertPresentException: Alert Text: Device Maximum Reached.

This account is currently being used on another device. Click ‘Ok’ to immediately end any existing sessions and log in on this computer.
Message: unexpected alert open: {Alert text : Device Maximum Reached.

Is there a way to handle this?