Add user-friendly errors for ENOSPC and EROFS.

Fixes #5101.
Update EROFS error to be a bit more informative.