Yes I do have aggregate and sort transformation in the mapping. I checked the above steps with mine and I already have those settings selected. It could be something else causing it.
The memory allocation error could happen due to multiple reasons and hence we need to have a detailed look at the complete job log to isolate the root cause of the issue. Have you tried limiting the number of source rows for each transformation and see if the job succeeds?