Add a few typed exceptions and override P6Regex::Grammar methods to throw them.

This lets us test sensibly for RT #77380, RT #77522 and similar.