A detailed description of the issue with an example of a wrongly generated metadata.xml can be found under the following link
https://github.com/SAP/openui5/issues/2288
In short: When a comment is added to an attribute in the source model, the generated annotation for the comment has the "Term" attribute missing. The Sapui5/ OpenUI5 library crashes when trying to parse the file.