Exception of type "System.OutOfMemoryException" deploying database to Azure

I suspect this SSMS running out of memory. SSMS is a 32bit app so only has access to 2GB of address space. You would be better off using a tool like Data Migration Assistant or exporting your DB to a BACPAC file and then restoring this to Azure SQL.