according to uniswap the “K” error means that a trade was attempted that somehow left the trading pair with less reserves than should be there, and as a result the transaction is reverted.
This geranlly happens when either one of ththe two tokens to be swapped is taking any types of transfer fee or taxation.