Limit document file sizes to 16MB on open

* Display a message if we've reached the limit opening a file

PR Replace #9495