The code generated by the "Get PHP Code" button for custom fields apparently adds redundant prefix for field ids within 'validation' => 'rules' and 'validation' => 'messages': the name after $prefix variable has the hard-coded prefix included in the field group settings page.