To fix this issue, download and install the patch Sitecore.Support.211150 that corresponds to the specific Sitecore XP or EXM version, follow the instructions to the readme file.
To get a solution for Sitecore XP versions that are not listed at the link above, contact Sitecore Support.