Limit document file sizes to 16MB on open

This is for #7223

* Display a message if we've reached the limit opening a file

PR Replace #9495
Ah, this is the part causing the unit test failure -- `_mapError()` is wrong here since `_err` comes from one of our own FS APIs, not from the impl layer.