Too often, the copy action doesn't overwrite the destination files. As for the trouble you run into, I can only speculate that you mistakenly click on overwrite instead of merge when you copy the /DirB/FolderA to /DirA/FolderA.
If you have a backup, you can restore the disappearing files from the backup you have made. If you have no backup, I recommend iBoysoft Data Recovery Software here to thoroughly scan the external SSD for lost files. It is configured with advanced disk scanning skills and data recovery algorithms that can bring your invaluable files back at a high success rate! You can give it a try!