It looks as if there's a bug in #NextCloud's calendar that generates enormous numbers of sync tokens. I wondered why my database had gone from around 90 MiB to around 2.5 GiB over a fairly short time and it turns out that it's generating about 40K sync tokens per day for the last few months. The background thing that's supposed to delete old ones also seems not to be working.
1