1. Disable Brute force Protection

2. Delete this MySql data:

DELETE FROM oc_bruteforce_attempts

Source: https://help.nextcloud.com/t/11-0-2-incredibly-slow-login/9475/17