Hello IvanSobol,
If you can share the project with the mesh model and at least some related original images, please send the data download link to support@agisoft.com.
Additionally please provide the screenshot of Generate Masks commands with the parameters used, so that we can reproduce the issue on our side and analyze the mask generation behavior in the particular case.