A contract that can't estimate gas while selling, but can buy Without issue

i am working on a practical, to create a token hardcoded with pancake v1, that buying will be possible but selling will bring out this error code of, showing tranfer gas fee cannot be estimated, who know how i can go about this.

how can i go about a token that will bring this error code, when selling, but wont bring it when buying