Alexey,
What if you could give a try when you are done export it as a orthomosaic or a model at the end and then save it as png and maybe use some other software such as Photoshop or some other software such as XnView or Inkscape and clean it up there and then bring it back into Metashape and use it as a mask there ?
Would that work ?