The Abdication Crisis had to do with a lot of things.
Sir Alan Lascelles, King Edward VIII's Private Secretary has stated that his “impression [was] that the Prince of Wales was caught napping by his father's death; he expected the old man to last several years more, and he had, in all probability, already made up his mind to renounce his claim to the throne, and to marry Mrs S. . . . . King George VI has told me that his brother, at the time of the Abdication crisis, said to him: 'It was never in my scheme of things to be King.'”
http://www.dailymail.co.uk/news/article-417388/Prince-Charmless-A-damning-portrait-Edward-VIII.html
However, I don't believe that it has ever been shown that King Edward VIII was deliberately passing information to Germany, however, it is certainly true that he was horrifically casual/careless with handling state papers, and was likewise gossipy in the extreme.