The figure of speech used in "My heart was so light" is hyperbole.
The figure of speech used in the sentence "My heart was so light" is a metaphor. In this figure of speech, the term "light" is used to describe the emotional state of the heart, suggesting that the person feels happy or unburdened.