Flares from small to large: X-ray spectroscopy of Proxima Centauri with XMM-Newton