Do you use a Linux docker container? If so, the observed behavior may be explained with the different libraries we use for rendering the reports under Windows and Linux. For Windows, we use GDI+, whereas under Linux we utilize libgdiplus. They slightly differ in measuring the text, which may result in different wrapping and other discrepancies.
Unfortunately, I'm unable to provide a workaround for this scenario, because, we're using a 3rd party library as Graphics replacement and we do not maintain its code. In the libgdiplus Github repo, there are a few bugs related to incorrect string measurement and I hope this issue will also be fixed in a future release of the package. I would still suggest to try updating it to some of the latest releases and see if the measurement problem will be resolved.