Bradley Cooper says replacing Leonardo DiCaprio in 'Nightmare Alley' exposed his 'insecurity and ego'