hi there, sorry to be slow to reply but i am excited to see you did a lot of great debugging work!
now for the less than great news - there are some things we can tweak with regards to builds (longer build timeouts, more bandwidth, more longer function timeout, etc) but memory is not one of them.