The issue seems to revolve around desktop auto-sync with iCloud Drive. When I placed the project folder outside of the synced area, it worked fine. As a temporary solution, I have disabled iCloud Desktop sync for now.
@Apple: This is something that needs fixing!
I hope this information helps somebody.