Never at any point in time did the Windows phone reach 34% market share or anywhere near #1. I’m not even sure Windows phone had a bigger share than BlackBerry at the time.
Their peak market share was 3.4%, not 34%. It failed because virtually nobody bought them.