AMD is finding out how tough it can be when you’re riding high in the artificial-intelligence investment trade.