Firstly it was her mistake that she died because one should always have trust on them which the nighingale lacked and trusted the cunning frog who want the nightingale should have been dead

secondly she died because of the excess of pressure on her lungs as the cunning frog was saying her to sing more and more louder