Try switching MAMP out of Fast CGI mode. Go to the PHP Tab and select "Identical PHP Version for all hosts (Module mode)". Restart the servers and then. Then run the update.
You can normally switch back to Fast CGI mode at this point and it will continue to work OK. But if you do run into this, or a file upload problem, it's worth changing to Module mode temporarily as it often fixes whatever is causing the issue.