Export module error

Hello,

I recently encountered an error when trying to export collections of more than 700 items to csv.

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /home/omekas/www/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php on line 2873

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /home/omekas/www/vendor/laminas/laminas-session/src/SessionManager.php on line 235

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in Unknown on line 0

I’m using Omeka S 3.2.3 and PHP 7.4.7, and I have this error with both version 1.5 and 1.6 of the Export module.
I tried disabling all the other modules I was using to make sure there was no conflict, but that didn’t change anything.
I also cleaned up the “sessions” table in case it took up too much space.

I understand this is a memory related error, but increasing the limit (currently 128M) doesn’t seem to be the most satisfying solution to fixing the bug. Has anyone had this problem before?

Many thanks in advance (and my apologies if a similar topic already exists) !