Swarm failed to kick off. The process cannot access the file

I had this issue, and to solve it I had to ungroup some meshes and brushes.