As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
You have to modify upload.post.js file to modify the failure message when uploading fileconfig\alfresco\extension\templates\webscripts\org\alfresco\repository\upload\upload.post.js
It is not recommended to directly edit upload.post.js file.instead of that use module extension pattern.
Surf Extension Modules | Alfresco Documentation