it's not uncommon at all to run out of physical memory (32 is not that much actually), if you want to render gigantic resolutions. I would bet this is your issue. Solution is tile render.
I know it's not what you asked, but I also have to comment just in case, was it the client who requested the resolution because he equated pixel density of glossy A4 magazine and just extrapolated it linearly to enormous proportions ?
Big wall prints are rarely even printed above 15-72 DPI, but even that doesn't mean your DPI has to match your PPI which can still be even lower. I can print A4 with 2.5K photo but still use 600DPI print, these values aren't necessarily connected directly.
And if your client really needs super resolution because he can't be reasoned with, just upscale it in post-production (fractal upscaling can be fantastic).