It turns out the answer was that the actual filepath (which I truncated in my example for simplicity's sake) was too long. When combined with the longer filename for the precision recall curve it seems to have reached a character limit; shortening the filename fixed the problem. A shame that the error message in this scenario isn't more descriptive of the actual issue!