If you have problems with the WiFi connection of your Smart Lock, please follow the advice in the FAQ. If you still encounter issues, please send me the Nuki ID of your lock in a direct message.
There are also a few threads with suggested settings for unifi routers. You might check them out too.