I've had the same error message and definitely isn't a space issue. Apparently, my input FLAC file was broken (?), but I could work around the problem by
* converting the sound file to another lossless format, e.g., `ffmpeg -i input.flac input.wav` and * using shnsplit on the new input file.