Harsh punishment but she did try to murder MC and was abusing her for years. Plus MC is a noble and in these types of stories, crimes against nobles carry harsher sentences than crimes against commoners.
This has been such a long plot line though so I'm surprised the author kind of rushed...