Fix prefix exception message (Closes #23364)

Prefix exception message uses a variable name _suffix_

I assume this is due some copy / paste between the functions… I submit a patch to Github