AI investment may stabilize global growth amid energy shocks, but rising inflation and geopolitical risks could hinder long-term economic recovery.