Synchronizing with Windows 10

There are comprehensive instructions for this in the manual. However, the app password that Nextcloud generates, necessitated by the two-factor authentication I use, is always 25 digits long. The iCloud account that I generate per the manual changes all password entries to 16 digits, which seems to be the standard Apple app password length and is a well-reported problem. Does anyone know how to solve this?