This is preventable.
Im not gonna write a huge essay on this, but don't use your starting warrior as a scout, and consider getting a slinger rather than a scout.
Then place those units convieniently in the way of barb camps to scare away scouts, and clear out camps when you can and before they spot you.
And if all fails, remember that they cant raze your capital anyway.
They really arent a problem once you get the routine down, believe me.
Thank you for replying to my posting. I always appreciate that.
My steam account says I have over 12K game hours in Civ6. You can really believe me when I say: I know the game rules and mechanics, I know how the AI typically behaves and I know the typical strategies to achieve specific tasks. On the other hand: I often can't get the right timing or balance, and I acquired certain (hard to break) "habits" that prevent me from winning more games. At best, I am a "mediocre" player and can only win on deity with the 4 or 5 best/easiest civs with game modes on and very good starting positions. (After so many game hours, I should be more advanced.)
What you wrote in your answer is nothing new for me, but it works only sometimes because no one can "on purpose" catch or block every one of the barb scouts, especially when there are two or even more camps near your capital, which you sometimes don't even see for quite some time in the fog of war.
When a barb camp is "triggered" and the spawning of units starts, my opinion is this: 1.) Too many units are spawned in a very short time (about five in five consecutive turns) and 2.) The units are too strong compared what an "average" or "mediocre" player like me can effectively deal with. Quadriremes in turn 5, men-at-arms around turn 40 are not uncommon (even without Gaul or Babylon in the game).
All I wish for is: The developers should give us something like a
"medium barbarians" option in the game setup. That could include a longer time span before the scout triggers the camp to spawn units, the camp could spawn less units, and the spawned units could be less advanced (for example swordsmen instead of men-at arms).
The good players like you or people who just don't care about barbarians could choose the other option with barbs behaving like in the current state of the game. In Civ5 that was called "raging barbarians" if I remember correctly.
Wouldn't you agree that giving the player the opportiunity to choose how aggressive he wants the barbs to be, would be a fair solution to the problem?