Obviously you should minimize the amount of devices having access to SSH on the machine. But that's best-practice anyway.
According to the Ubuntu documentation, you could configure LoginGraceTime: https://ubuntu.com/security/CVE-2024-6387
For doing this in Unraid:
Check if /boot/config/ssh/sshd_config already exists. If not: cp /etc/ssh/sshd_config /boot/config/ssh/sshd_config
Configure "LoginGraceTime 0", I also recommend adding a comment.
Restart SSH (Settings --> Management access --> Set "Use SSH" to "off", apply, turn on again and apply again). Or restart the machine.