The problem can be solved by setting the hard_limit in the guest xml file as well.
Ideally, the hard_limit would be set automatically and a warning about the missing entry in the configuration generated. At least the error message should be more specific.