I checked the warnings and ran into an overfull hbox. The word planned is sticking out of the line. According to this website, it hasn't got any hyphenation, which explains why TeX isn't breaking it. It does not explain though, why it is not breaking before the word instead.
So how do I tell TeX to break the line before a too long word which cannot be hyphenated?

Update
To clarify the situation, this issue always occurs when an unbreakable word is the last one in a line. This also applies to words like with and Names without hyphenation pattern. TeX rather prefers to produce an overful hbox instead of breaking the line before the word and I don't understand why or how to change this.
I'm currently using XeLaTeX. microtype does not solve the problem.
Update MWE
Here is an example with which I could reproduce the issue:
\documentclass{scrbook}
\usepackage{lipsum}
%\hyphenation{plan-ned}
\begin{document}
\lipsum[1]
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA planned BBB CCC.
\lipsum[2]
\end{document}

(Adjust the count of A as needed in case you use another paper format.)
When defining a hyphenation pattern, the word breaks as desired. But TeX is not willing to just break the line before the word.

\begin{sloppypar} ... \end{sloppypar}. This isn't optimum; rewriting is better, if possible. This question might also be helpful: What is the meaning of\fussy,\sloppy,\emergencystretch,\tolerance,\hbadness? – barbara beeton Jan 27 '24 at 16:08\rule{\dimexpr\textwidth+10pt}{2pt}and asking why it is 10pt over full, there is nothing else TeX can do. – David Carlisle Jan 27 '24 at 23:49\begin{sloppypar}is working, thank you. It needs to be applied to every case separately, but at least it is leading to the desired result. If this was an answer, I'd mark it as accepted. – Erik Jan 28 '24 at 00:57\sloppyonce at the start if you prefer – David Carlisle Jan 28 '24 at 01:23\sloppyglobally is strongly discouraged since it leads to poor typesetting where better results could be achieved? Correct me if I am wrong. And\sloppy-\fussydidn't change anyching for me, only thesloppyparenvironment did. – Erik Jan 28 '24 at 02:41