Medea’s ‘tragic flaw’

What is Medea’s ‘tragic flaw’? How does this character trait lend both greatness and weakness to the heroine?

Is Beowulf and epic or a tragedy? Or both? Explain.