Tech titan Elon Musk cast doubt on Wednesday on a $500 billion AI project announced by US President Donald Trump.