Hey, welcome!
Great!
It seems like you created a deflationary token (burn a percentage on transfer), just like abcoathup mentioned before:
this can cause issues with use in other contracts such as: https://medium.com/balancer-protocol/incident-with-non-standard-erc20-deflationary-tokens-95a0f6d46dea
Also I recommend looking at Points to consider when creating a fungible token (ERC20, ERC777)
A little complex to find out why it does not work.