"message": "Allowed memory size of 134217728 bytes exhausted (tried to allocate 4198400 bytes)"

Looks like a memory failure when trying to run an export with the GUI and also with the API call via postman.
I changed the PHP memory settings and restarted apache but no luck. I also upgraded the database max packet size to 64MB.
Anyone got any advice on what else I can try? running Matomo 4.0.5 with 10.3.17-MariaDB

If you are running Linux, what do you get when you type “php -i | grep memory_limit”

So it was the PHP limit. It needed a server restart. I thought I needed to only restart Apache. So the issue is resolved after the increase of memory in php.ini