I found that some groups of letters in math mode have strange spaces:
looks bad, but some others like
I found that this is not a problem of italics:
I tried it in pdfLaTeX, LuaLaTeX, XeLaTeX and also Overleaf - the result is still the same. How can be this "unnatural" space removed?