file.open read a project with read_file, which reserves the size the file
reports and then reads to the end. On an overcommitting system a multi-gigabyte
or sparse file that claims a huge size commits memory until the process is
killed. The bounded reader already exists for exactly this; projects now use it
with a 1 GiB limit, as does the new-project template. Media imports already
refuse oversized and non-regular files.