Use <wbr> in stead of %nbsp; or <nobr>.
<wbr>
%nbsp;
<nobr>
<wbr> works like <br> but it will only trigger where necessary.
<br>
Simply replace all commas "," with ",<wbr>".
","
",<wbr>"
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/wbr