For anyone with a similar issue in the future, I figured out the problem!
The task involved copying files to a directory, but the target directory was also accidentally apart of the watch list. Basically, every time the task ran, it would trigger itself again, causing an error.