It probably has something to do with not using the standard method of validation. You’re either going to need to produce and output the error in your custom script or remove it and let ACF deal with it normally. I tend to only build custom code when it’s something I can’t do with a simple ACF filter.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users