It seems `\mess` does not handle math equations well. A solution is suggested on the following page. https://tex.stackexchange.com/questions/648891/is-it-possible-to-add-a-curly-brace-in-equation-in-sequence-diagram