You're trying to swap tokens, but your slippage tolerance is too low or liquidity is too low.
Try trading a smaller amount at one time.
Increase your slippage tolerance
If it does not work, go to settings.json and put : "UNLIMITEDSLIPPAGE": "true"
Lastly, try inputting an amount with fewer decimal places.
This usually happens when trading tokens with low liquidity.
That means there isn't enough of one of the tokens you're trying to swap in the Liquidity Pool: it's probably a small-cap token that few people are trading.
However, there's also the chance that you're trying to trade a scam token which cannot be sold. In this case, PancakeSwap isn't able to block a token or return funds.
It can also happen when there are front-run bots moving the price very quickly
--> Be careful !
This can happen when you don't put enough Gas Limit.
Check if you don't have this in your transaction page :
Increase gas limit to 1 million or more
This can happen with tokens with lots of additional fees, like this one :
This can happend when you're trying to buy a token where buying is limited to whitelisted wallets only in the beginning of the sale
There's nothing to do... you cannot buy if you're not on the whitelist 🤷♂