Federal Reserve Governor Michael Barr said there needs to be clear guardrails to prevent risks as the financial sector looks to adopt artificial intelligence in its core functions.