Apex heap size too large error when merging Cases

During the Merge, this error is usually seen due to a large number of Email Messages on the Cases and the included large sized attachments.

Details
Title
Apex heap size too large error when merging Cases
URL Name
Apex-heap-size-too-large-error-when-merging-Cases