This has to do with a non-existing reference in the new module descriptor file. In my case, in order to solve the problem I went to the AOS Service / PackageLocalDirectory/Application Suite and opened the descriptor file.
I opened the file and searched for the "retail" keyword and deleted the line from the file and saved it.
After deleting the line, I refreshed the models.
After that, I build the application again and I was able to keep working on my build. Thanks folks, I hope this helps.