System.OutOfMemoryException comes while RunAutomaticTast works

Hellow,
recently I'he met the problem with SDL Trados 2019 API:
error occurs while the task (to apply Perfect Matches) is running:

AutomaticTask perfectMatchTask = newProject.RunAutomaticTask(targetFiles.GetIds(), AutomaticTaskTemplateIds.PerfectMatch);
And comes error: "System.OutOfMemoryException".

It happens (in multilingual project) if previous file (*.sdlxliff) size is about 40 Mb and more. But at the same time SDL Trados 2019 it self work with the same files just fine.

In other projects (one lang or multylingual) with small previous *.sdlxliff size it works without errors.

My PC RAM = 16 GB and while program works, about 6 GB is free. So it is not a hardvire issue.
May be there are some solutions to increase available memory or enother useful hints which I don't know?
Please Help!