you're right. This is a bug in the eufy-security-client library (see this and this issue).
There are three possible workarounds:
revert back to 2.0.1 for the time being.
Install the latest beta, since this uses the latest RC of this library where the bug is already fixed.
Set the "Arm Delay" and "Leave Delay" on the guard modes in the eufy app once. After that you're free to reset these settings and the error should not occur anymore.
What happened?
Changing HomeBase 2 security mode in the newest release crashes homebridge. Previous version does not.
Device Type
Station (Supported)
Plugin Version
v2.0.x (Supported)
HomeBridge Version
v1.4.x (Supported)
NodeJS Version
v16 (Supported)
Operating System
Raspbian 10+ (Supported)
Relevant log output
config