A cooling AI boom could weaken the dollar as investors pull from US assets, challenging its traditional safe-haven appeal.