Windows desktop client is crashing

I am using the Windows desktop client with a Nextcloud instance I am self hosting.
The windows client keeps crashing when it is trying to sync changes.

Windows 10

I have tried two versions of the client:
2.6.5.15622 crashes in ocsync.dll

3.3.5.25842 crashes in CLDAPI.dll

It runs for a short while, but as soon as I open the app to look at progress, look at the logs, or try to make changes to the configuration it crashes.

The MAC client works just fine.

Here are the crash logs:

Log Name: Application
Source: Application Error
Date: 27/10/2021 14:05:36
Event ID: 1000
Task Category: (100)
Level: Error
Keywords: Classic
User: N/A
Computer: sloop
Description:
Faulting application name: nextcloud.exe, version: 2.6.5.15622, time stamp: 0x5f07b735
Faulting module name: ocsync.dll, version: 0.0.0.0, time stamp: 0x5f07b5c8
Exception code: 0xc0000005
Fault offset: 0x0000000000017230
Faulting process ID: 0x245c
Faulting application start time: 0x01d7cb334904866f
Faulting application path: E:\Program Files\Nextcloud\nextcloud.exe
Faulting module path: E:\Program Files\Nextcloud\ocsync.dll
Report ID: 4e242fd1-a8ba-43ec-a7b0-c75b86b4b84a
Faulting package full name:
Faulting package-relative application ID:
Event Xml:



1000
0
2
100
0
0x80000000000000

9576


Application
sloop



nextcloud.exe
2.6.5.15622
5f07b735
ocsync.dll
0.0.0.0
5f07b5c8
c0000005
0000000000017230
245c
01d7cb334904866f
E:\Program Files\Nextcloud\nextcloud.exe
E:\Program Files\Nextcloud\ocsync.dll
4e242fd1-a8ba-43ec-a7b0-c75b86b4b84a





and

Log Name: Application
Source: Application Error
Date: 27/10/2021 14:18:52
Event ID: 1000
Task Category: (100)
Level: Error
Keywords: Classic
User: N/A
Computer: sloop
Description:
Faulting application name: nextcloud.exe, version: 3.3.5.25842, time stamp: 0x6155a13d
Faulting module name: CLDAPI.dll, version: 10.0.21390.1, time stamp: 0x7bcd084b
Exception code: 0xc0000005
Fault offset: 0x00000000000157b7
Faulting process ID: 0x294
Faulting application start time: 0x01d7cb34b3c92d7a
Faulting application path: E:\Program Files\Nextcloud\nextcloud.exe
Faulting module path: C:\WINDOWS\SYSTEM32\CLDAPI.dll
Report ID: 4d8f8206-596a-46a2-86e6-a79d4942ab5e
Faulting package full name:
Faulting package-relative application ID:
Event Xml:



1000
0
2
100
0
0x80000000000000

9656


Application
sloop



nextcloud.exe
3.3.5.25842
6155a13d
CLDAPI.dll
10.0.21390.1
7bcd084b
c0000005
00000000000157b7
294
01d7cb34b3c92d7a
E:\Program Files\Nextcloud\nextcloud.exe
C:\WINDOWS\SYSTEM32\CLDAPI.dll
4d8f8206-596a-46a2-86e6-a79d4942ab5e