Handle ENOSPC error

Should try a better solution later