Insufficient Energy or bandwidth and small slippage percentage when exchanging will lead to failed exchange.
When making an exchange, you can click on the advanced setting, select a larger slippage percentage, and make sure you have sufficient Energy and bandwidth to secure your exchange.