optionsfrom: Properly handle errors when determining file size