Client freezes desktop

After every reboot the nextcloud client causes a small freeze for the whole desktop cant move my mouse etc. for like 4 seconds. Does somebody know what the problem is?

Can you start the client with logging? Check to restart the client and see at which point of the log it freezes.
https://docs.nextcloud.com/desktop/2.3/troubleshooting.html