At the cost of a slight performance hit and some extra memory usage, you could go for something like
errorBuilder.Append($"{"Duplicated ID"},{"Invalid cost"},{"Unsupported Service for account"}");
in the interpolated string ($"") you can insert any variables with {} more info on performance and memory usage: