Bug in drawFittedText?

When I decrease the width available to drawFittedText for a one-word string it disintegrates like in the pic below.
Skärmbild 2024-06-16 232345

It should look like it does here, where the width is a tiny bit wider
Skärmbild 2024-06-16 232259

The function call goes like this

g.drawFittedText(trackName, inside.reduced(10), Justification::bottomLeft, 2);

Windows 11, the new juce8 branch