You need to increase the memory to process files that large. You can do that in the php.ini file, or sometimes you can do it on the top of the page with:
<?php
ini_set("memory_limit", "256M");
?>
You can read more about the memory_limit setting here: https://haydenjames.io/understanding-php-memory_limit/