The only threat but which bitcoin developers do not see as threat for now is quantum computing which is predicted to be able to reveal bitcoin private key from the public key.
AI is affecting different fields but so far AI has not posed any noticeable threat to Bitcoin security. I have read posts here on the forum where members are saying Quantum computing is not a threat to Bitcoin. There are also experts who believe that future quantum computers will be powerful enough to break the Bitcoin cryptographic algorithms in few hours posing a serious threat to Bitcoin blockchain security. It will be best in our interest to take quantum computing seriously and plan the measures to counter challenges posed by Quantum computing before there arrival.