iCloud Exclamation Mark Error Breaks Obsidian Syncing

What I’m trying to do

I’m trying to sync files between my iPhone and my Mac, and it has been working for several months, but then suddenly it just stopped syncing between the two devices. On my iPhone, everything looks fine, but my Mac shows a cloud with an exclamation point on it that simply says “error.” Nothing syncs between the two.

Things I have tried

I have looked on the forums, but nobody (as far as I’m aware) has had the same problem. I tried researching this exclamation mark cloud, and while I have found a few temporary solutions that are really messy (ie. deleting the errorous files and making them again), nothing really seems to permanently fix it. The only temporary solution I have found is disabling iCloud syncing on my Mac and then re-enabling it, which fixes the issue for a week or so, then it breaks again.

Has anyone else experienced this? If so, I would greatly appreciate it if your shared your solutions.